| New file |
| | |
| | | /////////////////////////////////////////////////////////////////////////// |
| | | // 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); |
| | | }, |
| | | }); |
| | | }); |