Does anyone know where the map click handler lives in the WAB code?
I need to interrupt it before it completes its default behavior of identifying features in operational layers.
Thanks
Keith
Keith,
it is not the map that has a click event. The API itself handles the showing of popups for layers that have popups defined. the map has a setInfoWindowOnClick method.
Map | API Reference | ArcGIS API for JavaScript | setInfoWindowOnClick
But there is no map click handler set on a WAB map in the code.
Semantics..."If true
and a map click event occurs, it may show the map's infoWindow."
The map is still raising a click event, even if the configurable method is what is actually doing work.
Doesn't seem to matter if I change all of the setInfoWindowOnClick references to false. It still appears, but since it only works when layers have an infoTemplate, removing the popup in the AGO map solves the problem.
While I'm sure there is some user crossover between the two places, you should post this question over in the Web AappBuilder Space as well.