var psi:FeatureLayer = new FeatureLayer("url"); psi.definitionExpression = "ID_PDI IN " + listePDI; // listePDI is a string like this : "(12, 76, 45)" var symbol:SimpleMarkerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 0x00FF00); psi.renderer = new SimpleRenderer(symbol); Main(this.parentApplication).mainMap.addLayer(psi); // because the feature layer is declared inside a <fx:component>
psi.renderer = new SimpleRenderer(symbol);
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.