Patch from andreas to fix silly typo in Control/Panel. (I need to start
naming my external maps something other than 'map' so I can catch these.) Closes #612 . git-svn-id: http://svn.openlayers.org/trunk/openlayers@2948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -122,7 +122,7 @@ OpenLayers.Control.Panel.prototype =
|
||||
this.controls = this.controls.concat(controls);
|
||||
if (this.map) { // map.addControl() has already been called on the panel
|
||||
for (var i = 0; i < controls.length; i++) {
|
||||
map.addControl(controls[i]);
|
||||
this.map.addControl(controls[i]);
|
||||
controls[i].deactivate();
|
||||
}
|
||||
this.redraw();
|
||||
|
||||
Reference in New Issue
Block a user