码迷,mamicode.com
首页 > 其他好文 > 详细

封装的函数ClearAllData() 清空地图文档并新建mainMapControl中Map以及新建EagleEyeMapControl中Map

时间:2018-12-25 00:07:28      阅读:477      评论:0      收藏:0      [点我收藏+]

标签:document   清空   pcl   ast   pre   doc   oid   count   code   

 

private void ClearAllData() { if (mainMapControl.Map != null && mainMapControl.Map.LayerCount > 0) { //新建mainMapControl中Map IMap dataMap = new MapClass(); dataMap.Name = "Map"; mainMapControl.DocumentFilename = string.Empty;//DocumentFilename为The filename of the last map document loaded into the control mainMapControl.Map = dataMap; //新建EagleEyeMapControl中Map IMap eagleEyeMap = new MapClass(); eagleEyeMap.Name = "eagleEyeMap"; EagleEyeMapControl.DocumentFilename = string.Empty; EagleEyeMapControl.Map = eagleEyeMap; } }

 

封装的函数ClearAllData() 清空地图文档并新建mainMapControl中Map以及新建EagleEyeMapControl中Map

标签:document   清空   pcl   ast   pre   doc   oid   count   code   

原文地址:https://www.cnblogs.com/gistwz/p/10171734.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!