Wednesday, January 12, 2011

Bing Map problem with Opera not working on drawing onclick

Today testing my Bing map application on opera
I attach 'onclick' event of bing maps to a function "OnMapClick

map.AttachEvent("onclick", OnMapClick);

in which i am expecting to track Mouse button clicks. i need to check which button is clicked right or left.

var OnMapClick=function(e)
{
var x = e.mapX;
var y = e.mapY;
var pixel = new VEPixel(x, y);
var LL = map.PixelToLatLong(pixel);
alert(e.leftMouseButton);
}

var OnMapClick=function(e)
{
var x = e.mapX;
var y = e.mapY;
var pixel = new VEPixel(x, y);
var LL = map.PixelToLatLong(pixel);
alert(e.leftMouseButton);
}



In Firefox, IE8 and Chrome If works fin but in Opera onclick drawng it showing problum on stop right click or left click event not working

Still looking for solution for this problem. :(

No comments:

Post a Comment