在silverlight与arcgis开发中发现在ArcGIS API for Silverlight/WPF 3.0 中FeatureLayer没有FeatureSymbol属性
在2.1中就有 其他版本没试过 在3.0中解决方案是 通过SimpleRenderer引用SimpleMarkerSymbol 然后在FeatureLayer在用Renderer引用SimpleMarkerSymbol
具体代码如下
<Grid.Resources><esri:SimpleMarkerSymbol x:Name="MyMarkerSymbol" Color="Green" Style="Diamond" Size="14"/>
<esri:SimpleRenderer x:Name="myRederer" Symbol="{StaticResource MyMarkerSymbol}"/>
</Grid.Resources>
<esri:Map x:Name="MyMap" Extent="-130,10,-70,60" ><esri:Map x:Name="MyMap" Extent="-130,10,-70,60" >
<esri:Map.Layers>
<esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
<esri:FeatureLayer ID="MyFeatureLayer" Where="POP1990 > 75000"
Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0"
Renderer="{StaticResource myRederer}" />
</esri:Map.Layers>
</esri:Map>
</esri:Map>