Hi,
my mapstraction onclick event handlers always yielded javascript
errors in Virtual Earth maps ("e.view is undefined").
I''m using version 6 of mapcontrol.ashx. After consulting Virtual Earth
documentation, I came 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);