From e7bc0b68e57e1f2824a71873bc4ef22eb1e65084 Mon Sep 17 00:00:00 2001
From: nnnjjj123 <494715143@qq.com>
Date: Tue, 17 Nov 2020 09:52:57 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 widgets/MapSection/Widget.js |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/widgets/MapSection/Widget.js b/widgets/MapSection/Widget.js
new file mode 100644
index 0000000..ebfce20
--- /dev/null
+++ b/widgets/MapSection/Widget.js
@@ -0,0 +1,56 @@
+///////////////////////////////////////////////////////////////////////////
+// Copyright © 2018 NarutoGIS. All Rights Reserved.
+// 模块描述:获取两点间地形剖面
+///////////////////////////////////////////////////////////////////////////
+define([
+    "dojo/_base/declare",
+    "dojo/_base/lang",
+    'dojo/_base/html',
+    "dojo/_base/fx",
+    'jimu/BaseWidget',
+    "dojo/topic",
+    "dojo/Deferred",
+    "dojo/on",
+    'jimu/dijit/Popup',
+    "./SectionChart"
+
+],function(
+    declare,
+    lang,
+    html,
+    fx,
+    BaseWidget,
+    topic,
+    Deferred, 
+    on, 
+    Popup,
+    SectionChart
+
+){
+    return declare("MapSection", [BaseWidget],{
+        baseClass:"demo-widgets-MapSection",
+        destroy:function(){
+            this.inherited(arguments);
+        },
+        onOpen: function () {
+            this.map.scene.globe.baseColor = Cesium.Color.BLACK;
+            $($('div.cesium-viewer').find('.cesium-baseLayerPicker-choices')[0]).children('div:eq(3)').trigger('click');
+            this.active = true;
+        },
+        onClose: function () {
+            this.active = false;
+            this.clearEntity();
+            this._tooltip.setVisible(false);
+            },
+        startup:function(){
+            this.inherited(arguments);
+            var pm = new DC.mapSection(window.dcViewer,Popup,SectionChart);
+
+        },
+        clearEntity: function () {
+            window.viewer.entities.remove(this.bill1);
+            window.viewer.entities.remove(this.bill2);
+            window.viewer.entities.remove(this.line);
+        },
+    });
+});
\ No newline at end of file

--
Gitblit v1.9.3