Added a position property to Control, which allows us to specify a default
location for each Control class, and saves us from *having* to supply a pixel position to the map.addControl() method -- the sensible default will tend to be used instead. git-svn-id: http://svn.openlayers.org/trunk/openlayers@269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -93,9 +93,8 @@ OpenLayers.Map.prototype = {
|
||||
|
||||
if (!this.controls) {
|
||||
this.controls = [];
|
||||
this.addControl(new OpenLayers.Control.MouseDefaults(), null );
|
||||
this.addControl(new OpenLayers.Control.PanZoom(),
|
||||
new OpenLayers.Pixel(4,4) );
|
||||
this.addControl(new OpenLayers.Control.MouseDefaults());
|
||||
this.addControl(new OpenLayers.Control.PanZoom());
|
||||
}
|
||||
|
||||
this.popups = new Array();
|
||||
|
||||
Reference in New Issue
Block a user