featureLayer.selectFeatures(selectQueryTask, esri.layers.FeatureLayer.SELECTION_NEW);
function colorSelFeatures(featureset) { for (var i = 0; i < featureset.length; i++) { //add each feature from featureset to graphic var graphic = features; graphic.setSymbol(new esri.symbol.SimpleFillSymbol().setColor(getRandomColor())); //calls a function to assign color to each graphic map.graphics.add(graphic); }
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.