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:
@@ -7,6 +7,7 @@ Christian López Espínola
|
|||||||
John Frank
|
John Frank
|
||||||
Sean Gilles
|
Sean Gilles
|
||||||
Pierre Giraud
|
Pierre Giraud
|
||||||
|
Andreas Hocevar
|
||||||
Philip Lindsay
|
Philip Lindsay
|
||||||
Corey Puffault
|
Corey Puffault
|
||||||
Tim Schaub
|
Tim Schaub
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ OpenLayers.Control.Panel.prototype =
|
|||||||
this.controls = this.controls.concat(controls);
|
this.controls = this.controls.concat(controls);
|
||||||
if (this.map) { // map.addControl() has already been called on the panel
|
if (this.map) { // map.addControl() has already been called on the panel
|
||||||
for (var i = 0; i < controls.length; i++) {
|
for (var i = 0; i < controls.length; i++) {
|
||||||
map.addControl(controls[i]);
|
this.map.addControl(controls[i]);
|
||||||
controls[i].deactivate();
|
controls[i].deactivate();
|
||||||
}
|
}
|
||||||
this.redraw();
|
this.redraw();
|
||||||
|
|||||||
Reference in New Issue
Block a user