Double Right Click Event?

231 views
Skip to first unread message

etheriau

unread,
Aug 6, 2011, 10:41:38 PM8/6/11
to google-map...@googlegroups.com
Hi--

Is there a way to add a double-right-click event handler to a map? In the API documentation, I only see a click, dblclick, and rightclick event. I'm trying to implement the zoom-out functionality a-la Google Earth. Thanks for any assistance.

Eric

Luke Mahé

unread,
Aug 7, 2011, 12:50:30 AM8/7/11
to google-map...@googlegroups.com
Hi Eric,

The map already zooms out when you double right click. Does it not work for you or something?

-- Luke


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/l_fajqprPgIJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

etheriau

unread,
Aug 7, 2011, 1:02:03 AM8/7/11
to google-map...@googlegroups.com
Thanks Luke for your quick response.

No, it is not working -- I assume that is the "correct" behaviour because I have overridden the click and doubleclick events (disableDoubleClickZoom set to true).

Regardless, is there a way to override the double-right-click event?  Please let me know.  Thanks.

Eric

etheriau

unread,
Aug 7, 2011, 1:08:48 AM8/7/11
to google-map...@googlegroups.com
Err, after I hit post, I realized that the disableDoubleClickZoom should have been set to false, and so, yes, after that is set, it does work properly... except if you add a rightclick event handler. With the click and doubleclick handlers, you can create a counter that allows you to distinguish between the two; how do you accomplish the same thing with rightclick's?

Thanks for any info.

Eric
Reply all
Reply to author
Forward
0 new messages