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();
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.