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); }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.