Select to view content in your preferred language

It is possible to turn off map event or disable map click while editor is open in editor widget? Im using Web App Builder for ArcGIS 2.4.

725
3
10-10-2019 08:07 PM
mazlianamohd_nordin
New Contributor II

It is possible to turn off map event or disable map click while editor is open in editor widget? Im  using Web App Builder for ArcGIS 2.4.

0 Kudos
3 Replies
shaylavi
Esri Contributor

Not sure I understand why but you cannot override the map's behavior as far as I know. You can override this by adding an invisible div over the map to prevent the clicks and remove the div when required.

Shay
0 Kudos
mazlianamohd_nordin
New Contributor II

Hi Shay Lavi, 

 Thank you for your reply, my team able to disable map click behavoir while editor widget is open.

I remove the class of visible widget and off the click behavoir in map container class

$('#map_container').off('click');
$('#map_container').dblclick(false);

shaylavi
Esri Contributor

Good to know! thanks for sharing

Shay