地图
1.手工梆定地图要梆定地图的.gst文件
如:
mapControl1.Map.Clear();
MapGeosetLoader _map = new MapGeosetLoader(@"D:\河北地图\河北-城市好\hebei.gst");
mapControl1.Map.Load(_map);
mapControl1.Refresh();
MapGeosetLoader _map = new MapGeosetLoader(@"D:\河北地图\河北-城市好\hebei.gst");
mapControl1.Map.Load(_map);
mapControl1.Refresh();
注:需using MapInfo.Mapping;
2.
地图手工代码放大:
mapControl1.Tools.LeftButtonTool = "ZoomOut";
反之:
MapControl.Tools初始包含以下工具
| 00. AddCircle | 01. AddEllipse | 02. AddLine |
| 03. AddPoint | 04. AddPolygon | 05. AddPolyline |
| 06. AddRectangle | 07. AddText | 08. Arrow |
| 09. Center | 10. Label | 11. Pan |
| 12. Select | 13. SelectPolygon | 14. SelectRadius |
| 15. SelectRect | 16. SelectRegion | 17. ZoomIn 18. ZoomOut |
posted on 2009-05-20 23:10 大飞-q4444zpf 阅读(185) 评论(0) 收藏 举报
浙公网安备 33010602011771号