Events do not trigger one another, and the map doesn't zoom because the polygon is there. The mapOptions that you pass to the map constructor allow you to set disableDoubleClickZoom to true or false.
-- Marcelo - http://maps.forum.nu -- On Feb 12, 8:35 pm, Eric Jain <[email protected]> wrote: > After registering e.g. a dblclick handler on a Rectangle, how do I > prevent that event from triggering another handler as well (e.g. map > zoom)? > > google.maps.event.addListener(area, 'dblclick', function(event) { > // do something, but don't zoom in! > }); -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
