Multiple Popup/Infowindow on Map

4724
3
09-25-2014 07:08 AM
PrithivRajendran
New Contributor

Hi all,

How can I display more than one infowindow/popup on my map? On ArcGIS API reference, it says only one infowindow can be displayed at a time. Is there a way to bypass it?

Prithiv.

Tags (1)
0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Prithiv,

I'm not sure if there is a way to bypass this, but a workaround that may work for you is to populate a DataGrid with a set of attribute information for one layer, and enable the popup/infoWindow for the other layer.  Here is an example of this.

JoshHevenor
Occasional Contributor II

Might not be what you're looking for, you can take all the features you're interested in and add them to the infoWindow so you can cycle through one at a time.

     map.infoWindow.setFeatures([a,b,c]);

Or you could look at labeling selections instead of the popup.  If you really want to see all the attributes of a bunch of things at the same time then Jake has the best idea.

0 Kudos
NickCameron2
New Contributor III

Hi Prithiv,

I have the same requirement...couldn't find anything so built a Popup subclass to allow multiple popups on a map and a few other things.

Just put it up on Github...I know this thread is a bit old but it may help yourself or someone else.

nickcam/PopupExtended · GitHub