[GIS] How to disable double-click zoom in Arcgis Javascript API

arcgis-javascript-apizoom

I am using ArcGIS java script API for creating map. I am trying to disable the double-click zoom in the map. Here is link of my map: http://urbanaccessregulations.eu/mindcrew/mobile-popup.html

I used both methods which are given in documentation of Arcgis JS:

map.isDoubleClickZoom=false;
map.disableDoubleClickZoom();

But still the double click zoom is not disabled – what am I doing wrong?

Best Answer

Just call map.disableDoubleClickZoom();

Setting map.isDoubleClickZoom=false before calling the above method actually causes the method to fail.