| | |
| | | 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) { |
| | |
| | | // }, |
| | | 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); |
| | |
| | | return def; |
| | | } |
| | | }); |
| | | }); |
| | | }); |