Reordering Popups without changing the order of the layers

748
3
06-13-2017 01:36 PM
JayHill
Occasional Contributor II

Is there a way to reorder which popups show first on a feature click? I need the order they are drawn to be different than the order in which the popups display.

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Jay,

   I don't know for sure but you should consider catching the set-features event and reordering there.

0 Kudos
JayHill
Occasional Contributor II

set-features event?  could you explain a bit further?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jay,

   So you would attach an event handler to the map.infoWindow.on("set-features", function(){ and then get the array of graphics and re-order them.

0 Kudos