ArcGISPlotSilverlightAPI.dll 提供了丰富的标绘图标,貌似不是esri的,网上也没有学习资料。
无奈之下我通过反编译学习,差不多掌握了ArcGISPlotSilverlightAPI的运用,下面就介绍下如何
使用。
演示网址:
http://tm.arcgisonline.cn:8038/App1/WaterPlot/SilverlightPlotMapTestPage.html
自定义Plot类:
// 地图的标绘功能
public class MapPlot
{
#region 字段
//复杂标绘工具
private PlotDraw _plotDraw;
//简单标绘工具
private Draw _draw;
//地图对象
private Map _mapObject;
//线标注
private LineSymbol _syLineSymbol;
//面标注
private FillSymbol _syFillSymbol;
//图层
private GraphicsLayer _gLayer;
//标注枚举
private MapPlotMode _plotMode;
#endregion
#region 构造函数
public MapPlot(Map mapObject)
{
this._mapObject = mapObject;
_plotDraw = new PlotDraw(this._mapObject);
Layer _layer = this._mapObject.Layers.SingleOrDefault(a => string.IsNullOrEmpty(a.ID));
if (_layer != null) _layer.ID = "_plotDraw";
#region 保存标绘结果
this._plotDraw.DrawEnd += (polygon, polyline) =>
{
try
{
Graphic graphic;
//如果是面
if (polygon != null)

本文介绍了如何使用ArcGISPlotSilverlightAPI进行地图标绘,该API提供了丰富的图标,通过反编译学习,掌握了其运用。文中还提供了一个演示网址以展示具体操作。
最低0.47元/天 解锁文章
546

被折叠的 条评论
为什么被折叠?



