Make it possible to supply an empty list to the Map() constructor, to disable the default controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -87,12 +87,12 @@ OpenLayers.Map.prototype = {
|
||||
|
||||
this.layers = [];
|
||||
|
||||
if (!this.controls) {
|
||||
this.controls = [];
|
||||
this.addControl(new OpenLayers.Control.PanZoom(),
|
||||
new OpenLayers.Pixel(4,4) );
|
||||
|
||||
this.addControl(new OpenLayers.Control.MouseDefaults(),
|
||||
null );
|
||||
this.addControl(new OpenLayers.Control.MouseDefaults(), null );
|
||||
this.addControl(new OpenLayers.Control.PanZoom(),
|
||||
new OpenLayers.Pixel(4,4) );
|
||||
}
|
||||
|
||||
this.popups = new Array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user