LatLong correct until I move the map?

Hi, I am working with the map control inside a win forms app. I get the LatLong object from e.View which I get in the OnClick event. The event fires twice for some reason. I get the same lat or long each time the event fires provided I havent panned themap. If Ive panned the map, the first time the event fires I get the correct value, the second time I get an incorrect value. It stumps me.

Why are events firing twice?

Why do I only get the correct lat or long (the second time it fires) if I havent panned the map?

Any help appreciated.

Rob

[575 byte] By [RobsPierre] at [2007-12-27]
# 1

Hi

I dont know whether i am correct or not. as i am also having similar problems when i am reisizing the map div.

So after resizing the panels i tried to resize the map. this will fetch me correct lat long values.

Try

map.resize(width,height);

If i am direct to ur question then this will solve ur problem.

DieHaunt at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...

Windows Live Developer Forums

Site Classified