Allowing users to better customize cursors for controls. Thanks to bartvde for the original patch and inspiration to get it done. Thanks ahocevar for the IE fix. r=ahocevar (closes #1484)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9258 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -304,6 +304,12 @@ OpenLayers.Control = OpenLayers.Class({
|
||||
this.handler.activate();
|
||||
}
|
||||
this.active = true;
|
||||
if(this.map) {
|
||||
OpenLayers.Element.addClass(
|
||||
this.map.viewPortDiv,
|
||||
this.displayClass.replace(/ /g, "") + "Active"
|
||||
);
|
||||
}
|
||||
this.events.triggerEvent("activate");
|
||||
return true;
|
||||
},
|
||||
@@ -323,6 +329,12 @@ OpenLayers.Control = OpenLayers.Class({
|
||||
this.handler.deactivate();
|
||||
}
|
||||
this.active = false;
|
||||
if(this.map) {
|
||||
OpenLayers.Element.removeClass(
|
||||
this.map.viewPortDiv,
|
||||
this.displayClass.replace(/ /g, "") + "Active"
|
||||
);
|
||||
}
|
||||
this.events.triggerEvent("deactivate");
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user