Select to view content in your preferred language

Multiple popups

1004
1
02-18-2022 12:50 AM
Status: Open
Labels (3)
MichaelK1
Emerging Contributor

It should be possible to add multiple popups? 

view.popups = [];

popups.png

 

Add popups manually with viewHitTest -> view.popup.add() - given a graphic -

Thanks!

1 Comment
JuliePowell
Thank you for the idea. We don't have this in the product plan, but you can implement a custom solution using it the feature widget. Feature widget lets you put formatted popup content anywhere you want, and that can include multiple divs on the map. A few examples of the feature widget:
(shows popup info on hover) https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature/
(this one shows popup info from multiple features, coming from multiple layers): https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature-multiplelayers/