Disable Map Popups

1001
1
09-24-2012 09:41 AM
BillGrow
New Contributor II
How do you temporarily disable arcgis online popups for a map?

I am bringing in an arcgis online webmap which has popups enabled. When I use a drawing toolbar, the popups are temporarily disabled. However, if I use the editor widget, popups remain enabled and interfere with the data entry window.
0 Kudos
1 Reply
KellyHutchins
Esri Frequent Contributor
The response object from createMap provides access to the clickEventHandle which can be used to disable popups in your app. Here's some info on how to disconnect and reconnect the click event.

clickEventHandle : handle to the map event connection registered by createMap to display popups. Use this if you need to disconnect the handle at runtime.

                dojo.disconnect(response.clickEventHandle);
             

clickEventListener : Use this function to reconnect the popup event handler.

                dojo.connect(map,"onClick",response.clickEventListener);
0 Kudos