JSAPI 4.0 get count of graphics at / behind point

828
1
09-21-2016 01:30 PM
SamBartlett
New Contributor

I have a map that I am drawing a large set of points onto using a graphics layer. The points are sometimes at the same coordinates - so sometimes the popups for the points drawn under the top point are inaccessible. Is there a way to show a "next >" button on the popup templates to expose these hidden points?

0 Kudos
1 Reply
SafeTRECUCB
New Contributor II

Yes. You can do by opening the popup manually. results is featureSet from querytask of spatial query around click event on the layer. 

view.popup.open({
   features: results,
   updateLocationEnabled: true
});

0 Kudos