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); }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.