I make a web application with ArcGIS API for Javascript (version 3.15) to access a geoprocessing service. The service is executed on an onclick event by the user, because the clicked position is used as an input parameter:
map.on("click", startGPService);Then the result is displayed and I have an info window enabled, which also opens when clicked, although not specified directly by onclick:
var template = new InfoTemplate();template.setTitle(getTitleInformation);resultLayer.setInfoTemplate(template);The problem is that whenever the user clicks on an info window, also the onclick event of the map is fired and the geoprocessing starts again. It would be great, if the onclick event could recognize, if the info window is clicked or somewhere on the map and only then fire.
Any solution how to deal with that?
أكثر...
map.on("click", startGPService);Then the result is displayed and I have an info window enabled, which also opens when clicked, although not specified directly by onclick:
var template = new InfoTemplate();template.setTitle(getTitleInformation);resultLayer.setInfoTemplate(template);The problem is that whenever the user clicks on an info window, also the onclick event of the map is fired and the geoprocessing starts again. It would be great, if the onclick event could recognize, if the info window is clicked or somewhere on the map and only then fire.
Any solution how to deal with that?
أكثر...