disable double click zoom in google maps while drawing
dojo, google-maps-api-3, javascript
Solution
It should be the other way around:
To disable
map.setOptions({disableDoubleClickZoom: true });
To enable
map.setOptions({disableDoubleClickZoom: false });
Problem
I want to draw a polyline on the maps. i am not using the Drawing lib from google maps api.. i have written my own.. problem: Before starting the line draw i disabled the double click zoom as below ``` map.setOptions({disableDoubleClickZoom: false }); ``` double click event is added to line end. after this event i am enabled by calling the ``` map.setOptions({disableDoubleClickZoom: true }); ``` but still the zoom is happening. even if i put the stop event code in double click. ``` mouseEvent.stop(); ```