As recently as Feb 9th, the issue of turning off the default pan
behaviour on dblclick was raised. <http://groups.google.com/group/
Google-Maps-API/msg/e7dac2105af56f93>

The solution then was the .clearListeners call. This works in v2, with
the unfortunate side-effect of losing the hand cursor that indicates
the map is draggable, but appears to no longer work in v2.x.

My current workaround is to call "map.setCenter(map.getCenter());" at
the start of my own dblclick event handler. It's ugly, but appears to
work.

I suspect the situation is changing/will change, so can we get an
update on the best way to disable the default pan on dblclick
behaviour, and may I put another request in for a disableDoubleClickPan
() method on GMap2 like we have for disableDoubleClickZoom()?

FYI, my dblclick handler calls some AJAX stuff that figures out the
closest location in the database to the point that was clicked, adds a
marker at that point and then pans to that point. With the default pan
behaviour enabled, there is an unsightly double-pan effect that. I'm
testing on OS X, Safari, using a RoR framework.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to