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();
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.