赣州市洪水风险预警系统三维版本
xiebin
2023-02-17 f46809e0c7b8d78f681f17deec7c3bd8b472575a
widgets/Layermanagement/Widget.js
@@ -62,7 +62,7 @@
         onOpen: function () {
            var self = this;
            // this.map.scene.globe.depthTestAgainstTerrain = false;
            // this.map.scene.globe.depthTestAgainstTerrain = false;
            $.ajax({
               url: 'http://localhost:82/blade-ycreal/layer/list',
               dataType: 'json',
@@ -86,7 +86,7 @@
                        var result = null;
                        // 存储url最后面数字的
                        var layersNumber = null;
                        // 存储 true, false
                        // 存储 true, false
                        var layerShow = null;
                        // 存储除数字外的URL
                        var layersUrl = null;
@@ -236,6 +236,7 @@
         },
         // 注册鼠标左键单击事件
         clickHandLayer: function (movement) {
            $('#map2d').hide();
            var self = this;
            var pickRay = this.map.camera.getPickRay(movement.position);
            var featuresPromise = this.map.imageryLayers.pickImageryLayerFeatures(pickRay, this.map.scene);