现在的位置: 首页 > 综合 > 正文

arcgis 在trackinglayer(跟踪图层)上画几何对象

2012年03月01日 ⁄ 综合 ⁄ 共 502字 ⁄ 字号 评论关闭
 private void m_mapControl_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            if (b_getCoord)
            {
                Point2D point = m_mapControl.Map.PixelToMap(e.Location);
                GeoPoint geoPoint = new GeoPoint(point.X, point.Y);
                //这里也可以是GeoLine等几何对象

                //  m_mapControl.Map.TrackingLayer.Clear();     
          m_mapControl.Map.TrackingLayer.Add(geoPoint, "point");               
m_mapControl.Map.RefreshTrackingLayer();           
 }      
 }

抱歉!评论已关闭.