1

I have some polygons on a map and when the user double clicks on them, I want no zoom to occur. However, I want double click zoom to be enabled on other parts of the map. Is there any way I can implement this?

Thanks a lot.

1 Answer 1

6

Observe the dblclick-event of the polygon(s) and call the stop()-method of the event when it occurs:

google.maps.event.addListener(polygonObject,'dblclick',function(e){e.stop();})
1

Not the answer you're looking for? Browse other questions tagged or ask your own question.