diff --git a/MainFrm.cs b/MainFrm.cs index 85c2dc0..707f651 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -536,9 +536,16 @@ String lrcMap = Application.StartupPath + "\\lrc\\tianditu.lrc"; String lrcBz = Application.StartupPath + "\\lrc\\biaozhu.lrc"; String lrcDl = Application.StartupPath + "\\lrc\\daolu.lrc"; - globeControl1.Globe.Layers.Add(lrcMap); - globeControl1.Globe.Layers.Add(lrcBz); - globeControl1.Globe.Layers.Add(lrcDl); + String superMap = Application.StartupPath + "\\lrc\\superMap.lrc"; + + if (File.Exists(lrcMap)) + globeControl1.Globe.Layers.Add(lrcMap); + if (File.Exists(lrcBz)) + globeControl1.Globe.Layers.Add(lrcBz); + if (File.Exists(lrcMap)) + globeControl1.Globe.Layers.Add(lrcDl); + if (File.Exists(superMap)) + globeControl1.Globe.Layers.Add(superMap); globeControl1.Globe.Layers.MoveDown(10000); //加载实测管线数据 diff --git a/MainFrm.cs b/MainFrm.cs index 85c2dc0..707f651 100644 --- a/MainFrm.cs +++ b/MainFrm.cs @@ -536,9 +536,16 @@ String lrcMap = Application.StartupPath + "\\lrc\\tianditu.lrc"; String lrcBz = Application.StartupPath + "\\lrc\\biaozhu.lrc"; String lrcDl = Application.StartupPath + "\\lrc\\daolu.lrc"; - globeControl1.Globe.Layers.Add(lrcMap); - globeControl1.Globe.Layers.Add(lrcBz); - globeControl1.Globe.Layers.Add(lrcDl); + String superMap = Application.StartupPath + "\\lrc\\superMap.lrc"; + + if (File.Exists(lrcMap)) + globeControl1.Globe.Layers.Add(lrcMap); + if (File.Exists(lrcBz)) + globeControl1.Globe.Layers.Add(lrcBz); + if (File.Exists(lrcMap)) + globeControl1.Globe.Layers.Add(lrcDl); + if (File.Exists(superMap)) + globeControl1.Globe.Layers.Add(superMap); globeControl1.Globe.Layers.MoveDown(10000); //加载实测管线数据 diff --git a/bin/x86/Debug/Config.xml b/bin/x86/Debug/Config.xml index a49a218..c616920 100644 --- a/bin/x86/Debug/Config.xml +++ b/bin/x86/Debug/Config.xml @@ -1,10 +1,10 @@  LocaSpace三维地下管线信息系统 - g - eydb2 - 192.168.0.203 - g + gzcs + orcl + 192.168.43.100 + gzcs 127.0.0.1 1500 http://127.0.0.1/images/