Select to view content in your preferred language

highlight features

669
1
09-22-2014 12:10 PM
BhavinSanghani
Frequent Contributor

I want to highlight features on the map such a way so, they appear on top of the feature symbol. For that, I am using featureLayer.selectedFeatures following way and it works. But once I find features and adjust extent following way then map is drawing symbols again. Then highlighted graphics is overlapped by other feature symbols. Because, highlighting happens fast and rendering feature symbols on the map takes little time. I am using ArcGISDynamicLayer(mapservice) to show the map. Is there anyway to highlight selected features on top after all feature symbols have been rendered?

            vFeatureLayer.on('load', function() {

                vSelectFeatureQuery.where = ' GISOBJID IN (' + vFldValues.gisobjid + ')';

                vFeatureLayer.selectFeatures(vSelectFeatureQuery, FeatureLayer.SELECTION_NEW, function(selectedFeatures) {

                            gisMap.setExtent(graphicsUtils.graphicsExtent(selectedFeatures));

                });

          });

1 Reply
JonathanUihlein
Esri Regular Contributor

I need to see more of your code, and preferably in action.

Can you post a complete sample using jsfiddle?

Thanks!

0 Kudos