Change "OpenLayers.Point" to OpenLayers.Pixel, so there's no confusion between LatLon and Point (a problem that has
and still does afflict the Google Maps API). git-svn-id: http://svn.openlayers.org/trunk/openlayers@19 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -22,8 +22,8 @@ OpenLayers.Control.PanZoom.prototype =
|
||||
this.buttons = new Array();
|
||||
|
||||
var sz = new OpenLayers.Size(18,18);
|
||||
var xy = new OpenLayers.Point(4,4);
|
||||
var centered = new OpenLayers.Point(xy.x+sz.w/2, xy.y);
|
||||
var xy = new OpenLayers.Pixel(4,4);
|
||||
var centered = new OpenLayers.Pixel(xy.x+sz.w/2, xy.y);
|
||||
|
||||
this._addButton("panup", "north-mini.png", centered, sz);
|
||||
xy.y = centered.y+sz.h;
|
||||
|
||||
Reference in New Issue
Block a user