replace Pixel argument with simple object (Map.getMapObjectPixelFromXY)
This commit is contained in:
@@ -337,11 +337,8 @@ OpenLayers.Layer.Google.v3 = {
|
||||
var lat = this.getLatitudeFromMapObjectLonLat(moLonLat);
|
||||
var res = this.map.getResolution();
|
||||
var extent = this.map.getExtent();
|
||||
var px = new OpenLayers.Pixel(
|
||||
(1/res * (lon - extent.left)),
|
||||
(1/res * (extent.top - lat))
|
||||
);
|
||||
return this.getMapObjectPixelFromXY(px.x, px.y);
|
||||
return this.getMapObjectPixelFromXY((1/res * (lon - extent.left)),
|
||||
(1/res * (extent.top - lat)));
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user