Commit fix for #726 from andreas, with proper tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -116,7 +116,9 @@ OpenLayers.Control.Panel.prototype =
|
||||
if (this.controls[i] == control) {
|
||||
control.activate();
|
||||
} else {
|
||||
this.controls[i].deactivate();
|
||||
if (this.controls[i].type != OpenLayers.Control.TYPE_TOGGLE) {
|
||||
this.controls[i].deactivate();
|
||||
}
|
||||
}
|
||||
}
|
||||
this.redraw();
|
||||
|
||||
Reference in New Issue
Block a user