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:
@@ -48,7 +48,7 @@ OpenLayers.Events.prototype = {
|
||||
|
||||
getMousePosition: function (evt) {
|
||||
var offsets = Position.page(this.div);
|
||||
return new OpenLayers.Point(
|
||||
return new OpenLayers.Pixel(
|
||||
evt.clientX - offsets[0],
|
||||
evt.clientY - offsets[1]);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user