AnsweredAssumed Answered

click event will not select Lines or Points.

Question asked by Geolaird on Aug 1, 2014
Latest reply on Aug 4, 2014 by Geolaird

Hi everyone,

 

I've been getting a problem here, my script generates a webmap. When a feature is selected a popup of the selected feature's attributes appears and the URL is updated to contain the object ID. Right now the click event will select polygons and the script will work, but I have two other identical scripts using lines and polygons. The "onmouseover" event will select them, but will not update the URL and I am unsure why. Any help would be greatly appreciated!

 

The line in question is #152, or "map.on("click", function (e) {"

 

Please find attached the three scripts.

 

2 is Polygons,

1 is Points,

0 is Lines.

Outcomes