Displaying 1 result from an estimated 1 matches for "vepixel".
Did you mean:
pixel
2009 Mar 24
0
Patch: clickHandlers in VirtualEarth
...up with a solution.
Here is my patch (based on rev 212)
> var that = this;
360c361,368
< me.clickHandler(e.view.LatLong.Latitude,
e.view.LatLong.Longitude, me);
---
> //added by FB
> var x = e.mapX;
> var y = e.mapY;
> var pixel = new VEPixel(x, y);
> var LL = that.maps[api].PixelToLatLong(pixel);
> //end of add
> //me.clickHandler(e.view.LatLong.Latitude, e.view.LatLong.Longitude, me);
> me.clickHandler(LL.Latitude, LL.Longitude, me);