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);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.