MapInfo加载地图
2016-02-20 17:10:35 访问(1519) 赞(0) 踩(0)
// 地图数据 //
string sPath
=
ah.ConvertPhyFileName(cac.MapFileName);
if (File.Exists(sPath))
{
this.mapControl1.Map.Clear();
MapGeosetLoader mgstLoader
=
new MapGeosetLoader(sPath);
this.mapControl1.Map.Load(mgstLoader);
this.mapControl1.Map.Zoom
=
new Distance
(
cc.mapZoomValueGet(),
mapControl1.Map.Zoom.Unit
);
mapControl1.Map.Center
=
new DPoint(cac.DefaultLongitude, cac.DefaultLatitude);
mapControl1.Map.ViewChangedEvent
+=
new ViewChangedEventHandler(Map_ViewChanged);
}
标签:
MapInfo加载地图 


上一条:
下一条:
相关评论
发表评论