I'm just trying to do a simple task. I have a point file with numerous overlapping points. When I load the service onto ArcGIS.com (their online mapping site) and enable popups and click on a point that is lying on top of other points, it gives me a popup, and gives me a little back and forward arrow to run through each of the points selected through my click.

You can sort of see it here in the image: https://developers.arcgis.com/en/javascript/jshelp/intro_popuptemplate.html

The image on the right hand side of that page shows (1 of 2) in the popup window title element.

The way my selection is done is by simply adding to the layers as a featureclass to my dojo map element.

So basically, what my question is, how do I enable and do this? Where when I click on a point with underlying points, the popup allows me to view those as well (instead of the point that's just on top).


  • 1
    I think you need no configure popup widget functionality in your map + If you have points contains multiple records at single point(lat,lon ) then you can view such information. If possible please share your code on JS Fiddle
    – Sunil
    Commented Aug 27, 2013 at 5:37
  • 1
    + 1 Which ArcGIS Server and JSAPI version your are using? (i.e. ArcGIS Server 10.1 & ArcGIS JSAPI 3.5)
    – Sunil
    Commented Aug 27, 2013 at 5:39
  • Hi Sunil, I managed to figure it out with the help of the @kenbuja's help/fiddles. But, I am using AGS 10.1 and JSAPI 3.6. Thanks! Commented Aug 27, 2013 at 14:46

2 Answers 2


Are you looking at getting the results back from several different layers that you've added? If so, this Fiddle shows how to do that. As each the layer is added to the map, an IdentityTask is created for that layer. When you click on the map, all the IdentifyTasks will be run and the popup window will contain all the features found in the different layers.

Here's another Fiddle that does something similar, but shows how to do it with two layers that can be turned on or off.

  • Thanks, @kenbura! Your fiddles/solutions worked. I think idetityTask is the only way to really go about this. The default popup features do not offer the ability to query multiple features. Thanks again! Commented Aug 27, 2013 at 15:42

toggling through overlapping features is functionality that is exposed/handled automatically by the popup widget. see this sample for a demonstration.

  • Hi John, I think the functionality is handled automatically, but the identitytask has to be used to grab the features/fields from the click and cycled through to the popup. The regular click/info window functionality of a feature layer will not allow you to select multiple features. Just whatever it is at top. Thanks! Commented Aug 27, 2013 at 17:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.