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();
}
}
arcgis 在trackinglayer(跟踪图层)上画几何对象
最新推荐文章于 2021-05-26 19:25:39 发布
