Generic123


Hi there

I am hooking the onclick event - so I can retrieve the coordinates of the location the user clicks - and then displaying some info. The problem is that this event is also fired when a user pans the map.

To get around this problem, I was going to create a custom button that switches the map between 'click' and 'pan' modes but I can't see a way of disabling the panning.

Is this possible Or is there a better solution to my problem

Thanks for any help

alan





Re: disable panning

Derek Chan


Similar problem of making a clickable pin is in a thread here:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1142952&SiteID=1

Here's one useful approach to making the pin clickable:
http://viavirtualearth.com/wiki/ClickablePin.ashx

I'd recommend looking into solving the problem before using a workaround first







Re: disable panning

Generic123

Thanks, I'll look into working this into my code later. Cheers.