原文:ArcGIS API for Silverlight地图加载众多点时,使用Clusterer解决重叠问题
问题:如果在地图上加载成百上千工程点时,会密密麻麻,外观不是很好看,怎么破?
解决方法:使用Clusterer
密密麻麻的情况图:
<UserControl.Resources>
<LinearGradientBrush x:Key="BlueGradient" MappingMode="RelativeToBoundingBox" >
<GradientStop Color="#990011FF" Offset="0"/>
<GradientStop Color="#990055FF" Offset="0.25"/>
<GradientStop Color="#990099FF" Offset="0.5"/>
<GradientStop Color="#9900CCFF" Offset="0.75"/>
<GradientStop Color="#9900FFFF" Offset="1"/>
</LinearGradientBrush>
</UserControl.Resources>
<Grid.Resources>
<esri:SimpleMarkerSymbol x:Key="BlueMarkerSymbol" Color="#FF0551A7" Size="10" Style="Circle" />
</Grid.Resources>
<!--站点位置-->
<esri:GraphicsLayer ID="GraphicsLayer">
<esri:GraphicsLayer.Clusterer>
<esri:FlareClusterer
FlareBackground="Yellow"
FlareForeground="#99000000"
MaximumFlareCount="5" Radius="15"
Gradient="{StaticResource BlueGradient}" />
</esri:GraphicsLayer.Clusterer>
</esri:GraphicsLayer>
之后效果