MapXtreme2004代码 MapControl控件中显示地图文件

::打开TAB文件::<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

MapControl1.Map.Clear();//清空MapControl1控件中的地图

 

MapTableLoader t1=new MapTableLoader(@"F:/test.tab");

 

MapControl1.Map.Load(t1);

 

 

 

::打开GST文件::

扫描二维码关注公众号,回复: 3713235 查看本文章

 

MapControl1.Map.Clear();

 

MapGeosetLoader g1=new MapGeosetLoader(@"F:/test.gst");

 

MapControl1.Map.Load(g1);

 

 

 

::打开其它类型地图文件的代码类似::

猜你喜欢

转载自blog.csdn.net/e_wsq/article/details/82219352