赣州市洪水风险预警系统三维版本
guoshilong
2023-02-03 dd4c39fb89fb2a2d0795036e61c104eb2d08afee
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;
        }
    });
});
});