Select to view content in your preferred language

Activating Navigation Tool (PAN or ZOOM_IN or ZOOM_OUT) disables double click zoom

871
2
03-28-2011 03:40 AM
MuneebAbdul_Shakoor
New Contributor
Hi all,
When I apply any of the navigation tools options ZOOM_IN, ZOOM_OUT or PAN, the zooming in behavior on double clicking the map disables. But on loading the map first time or deactivating the navigation tools manually solves the issue.

Anyone has any idea how to tackle this. I want my users to be able to zoom in on double click whether or not navigation tool is activated or deactivated.

Regards,
Muneeb Abdul Shakoor
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Muneeb,

   All you have to do is set the maps doubleClickZoomEnabled to true after you active navigation.

navTool.activate(NavigationTool.ZOOM_IN,true);
myMap.doubleClickZoomEnabled = true;
0 Kudos
MuneebAbdul_Shakoor
New Contributor
Thank you Scheitlin, it worked 🙂
0 Kudos