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) }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.