tags:

views:

60

answers:

0

I'm currently using the Ajax api for Yahoo maps, and having some trouble with my smart windows. When I click on my custom marker to display my smart window, it's firing the pan event. I am calling both disablePanOnDoubleClick() and disableDragMap(), but the events are still firing. My code uses the following event to display the smart window. I would like to modify this to unregister my pan events, and then re-add them when I am finished. Is there a way to do this?

YEvent.Capture(newMarker, EventsList.MouseClick, function() { this.openSmartWindow(this.moreInfo); });

Thanks.