在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,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>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。