function showFeature(r) { // r is the results set from the identifyResults var symbol; var feature; clearFeatures();//clear any old symbols for(var i=0;i<r.length;i++){// loop thru the list of items adding a symbol for each item feature=r.feature; if(feature.geometry.type == 'point'){ symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_DIAMOND, 14, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color(MARK_OUTLINE_COLOR), 2), new dojo.Color(MARK_FILL_COLOR)); }else{ symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NULL, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color(MARK_OUTLINE_COLOR), 2)); } feature.setSymbol(symbol); map.graphics.add(feature); } curDisplayGraphic = feature;// set the geometry & attributes to the selected feature. (or the last item in a group of items) }
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.