In IE, we use the image hack, so changing the img.src doesn't help.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -170,7 +170,7 @@ OpenLayers.Control.MouseToolbar.prototype =
|
|||||||
switchModeTo: function(mode) {
|
switchModeTo: function(mode) {
|
||||||
if (mode != this.mode) {
|
if (mode != this.mode) {
|
||||||
if (this.mode) {
|
if (this.mode) {
|
||||||
this.buttons[this.mode].firstChild.src = this.buttons[this.mode].imgLocation;
|
OpenLayers.Util.modifyAlphaImageDiv(this.buttons[this.mode], null, null, null, this.buttons[this.mode].imgLocation);
|
||||||
}
|
}
|
||||||
if (this.mode == "measure" && mode != "measure") {
|
if (this.mode == "measure" && mode != "measure") {
|
||||||
for(var i = 0; i < this.measureDivs.length; i++) {
|
for(var i = 0; i < this.measureDivs.length; i++) {
|
||||||
@@ -182,7 +182,7 @@ OpenLayers.Control.MouseToolbar.prototype =
|
|||||||
this.measureStart = null;
|
this.measureStart = null;
|
||||||
}
|
}
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
this.buttons[mode].firstChild.src = this.buttons[mode].activeImgLocation;
|
OpenLayers.Util.modifyAlphaImageDiv(this.buttons[mode], null, null, null, this.buttons[mode].activeImgLocation);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user