ArcGISPlotSilverlightAPI的标绘功能

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

     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)
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值