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:
Schuyler Erle
2006-05-22 17:25:46 +00:00
parent d8ddc5aa36
commit 7378388d45
4 changed files with 22 additions and 9 deletions

View File

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