dojo.forEach(this.map.getLayer('Points').graphics, function(g) { if(g.attributes.OBJECTID == objectId) { if(g.getDojoShape() != null) g.getDojoShape().moveToFront(); } });
Quick question: Are the other lines on top of the selected line in the same FeatureLayer?
get a handle to the esri.Graphic (the feature you have selected) and call g.getDojoShape().moveToFront();
g.getDojoShape().moveToFront();
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.