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:
Schuyler Erle
2006-05-22 14:06:09 +00:00
parent ea4e785409
commit 27c99baacb

View File

@@ -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();