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 lat = this.getLatitudeFromMapObjectLonLat(moLonLat);
|
||||||
var res = this.map.getResolution();
|
var res = this.map.getResolution();
|
||||||
var extent = this.map.getExtent();
|
var extent = this.map.getExtent();
|
||||||
var px = new OpenLayers.Pixel(
|
return this.getMapObjectPixelFromXY((1/res * (lon - extent.left)),
|
||||||
(1/res * (lon - extent.left)),
|
(1/res * (extent.top - lat)));
|
||||||
(1/res * (extent.top - lat))
|
|
||||||
);
|
|
||||||
return this.getMapObjectPixelFromXY(px.x, px.y);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user