赣州市洪水风险预警系统三维版本
水文水环境分析-洪水淹没:固定数据点、点击绘制按钮和清除按钮,清空数据
1 files modified
12 ■■■■ changed files
widgets/FloodAnalysis/Widget.js 12 ●●●● patch | view | raw | blame | history
widgets/FloodAnalysis/Widget.js
@@ -41,6 +41,7 @@
                that.deleteEntitys(that, pointId, shape, boildOne, boildTwo, boildThree, waterEntity);
                //隐藏详情框
                that.showDetail(false)
                that.clearData()
                $('#dong_time').val(0.5);
                $('.dong-progress .container #progress_bar').width(0);
                $('.dong-progress').stop().hide();
@@ -305,7 +306,6 @@
                    });
                    return;
                }
                ;
                // 提取坐标信息
                var list = waterEntity.polygon.hierarchy.getValue().positions;
                // 存放坐标信息,做请求数据使用
@@ -383,6 +383,7 @@
            $('#dong_delet').click(function () {
                that.showDetail(false)
                that.clearData()
                that.deleteEntitys(that, pointId, shape, boildOne, boildTwo, boildThree, waterEntity);
                handler.destroy();
@@ -563,7 +564,8 @@
                                color: Cesium.Color.RED,
                                pixelSize: 16,
                                //防止地形遮挡住点
                                disableDepthTestDistance: Number.POSITIVE_INFINITY
                                disableDepthTestDistance: Number.POSITIVE_INFINITY,
                                heightReference: Cesium.HeightReference.CLAMP_TO_GROUND
                            },
                        });
                    }
@@ -626,5 +628,11 @@
            var pt = turf.point([point.LGTD, point.LTTD])
            return turf.booleanPointInPolygon(pt, poly)
        },
        //清除框内数据
        clearData:function (){
            $('#dong_max_height').val(0);
            $('#dong_min_height').val(0);
        },
    });
});