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:
crschmidt
2006-05-12 22:59:47 +00:00
parent 05d213a806
commit f2fa6622f1
7 changed files with 28 additions and 28 deletions

View File

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