From dd4c39fb89fb2a2d0795036e61c104eb2d08afee Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Fri, 03 Feb 2023 10:44:24 +0800
Subject: [PATCH] 切换不同模块时,显示天地图影像

---
 widgets/MapSection/Widget.js |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/widgets/MapSection/Widget.js b/widgets/MapSection/Widget.js
index a16643a..bc11bcf 100644
--- a/widgets/MapSection/Widget.js
+++ b/widgets/MapSection/Widget.js
@@ -21,17 +21,17 @@
     fx,
     BaseWidget,
     topic,
-    Deferred, 
-    on, 
+    Deferred,
+    on,
     Popup,
     SectionChart
 
 ){
     return declare("MapSection", [BaseWidget],{
         baseClass:"demo-widgets-MapSection",
-        postCreate:function(){ 
+        postCreate:function(){
             this.inherited(arguments);
-         
+
             this._tooltip = this.createTooltip(this.map.cesiumWidget.container);
         },
         createTooltip: function (frameDiv) {
@@ -86,7 +86,8 @@
         // },
         onOpen: function () {
             this.map.scene.globe.baseColor = Cesium.Color.BLACK;
-            $($('div.cesium-viewer').find('.cesium-baseLayerPicker-choices')[0]).children('div:eq(3)').trigger('click');
+            //切换底图
+            $($('div.cesium-viewer').find('.cesium-baseLayerPicker-choices')[0]).children('div:eq(0)').trigger('click');
             this.active = true;
             this.clearEntity();
             this._tooltip.setVisible(true);
@@ -254,4 +255,4 @@
             return def;
         }
     });
-});
\ No newline at end of file
+});

--
Gitblit v1.9.3