Multiple layers info in one popup window

1101
1
07-25-2017 08:24 AM
ManjariGoyal
New Contributor III

I am trying to get the popup info from multiple layers in one info window, including address, lat and long. I am not able to add address, lat long info in the same window . Also, when I click on the map it doesn’t remove the old info from the popup and keeps adding the new one. Attached is the JavaScript and the screenshot for your reference. Any help is appreciated.

Thanks

Tags (1)
0 Kudos
1 Reply
JohnGravois
Frequent Contributor

after downloading and unzipping your sample and commenting out the <link> tags to .css files that weren't available, <script> tag for the TOC widget that was unavailable and references to the widget within the actual JavaScript i was finally able to get it to run locally and was not able to reproduce the error you describe.

each time i clicked on the map, a single address and lat/long coordinate pair were displayed.

when creating future posts, please consider using something like jsbin/codepen or jsfiddle to share your simplified reproducible test case so that folks can dedicate more time to debugging and less to set up.