dbecker88

popup content not sync'd with graphic selection

Discussion created by dbecker88 on Dec 5, 2012
Latest reply on Dec 6, 2012 by dbecker88
-click 2 overlapping features from 2 dif. featLayers.
-Popup auto-selects and highlights map.infoWindow.features[0]
-the popup content is actually from map.infoWindow.features[1]

after you navigate to the second graphic and back, the popup corrects it's self??

here's the method of fetching graphics/setting infoTemplates

1. buffer map click
2. fill array with all graphics from baseFeatLayers
3. dojo.filter graphics that intersect buffered map click
4. loop over filtered graphics array, setting infoTemplates based on the layer that graphics came from
5. pass selected filtered graphics array to map.infoWindow.setFeatures

here's an example using esri data:
http://jsfiddle.net/92Q2G/1/

any advice?
Thanks.

Outcomes