| | |
| | | |
| | | |
| | | this.tableData = val |
| | | this.$refs.filterTable.doLayout() |
| | | // this.$refs.filterTable.doLayout() |
| | | }, |
| | | |
| | | async setCartesianToEightFour(entities) { |
| | |
| | | ) |
| | | window.histogramHandler.setInputAction((event) => { |
| | | var pick = sgworld.Viewer.scene.pick(event.endPosition); |
| | | if (pick) { |
| | | |
| | | var propertiesFlag = that.$store.state.propertiesFlag |
| | | var propertiesFlag = that.$store.state.propertiesFlag |
| | | |
| | | if (Cesium.defined(pick)) { |
| | | if (pick && pick.id && pick.id.tag && pick.id.tag == "Histogram") { |
| | | that.$store.state.propertiesInfo = { |
| | | title: pick.id.properties._exppointid._value, |
| | | name: pick.id.properties._geoname._value, |
| | | type: pick.id.properties.geotype._value, |
| | | botdepth: pick.id.properties._botdepth._value, |
| | | describe: pick.id.properties._describe._value, |
| | | if (Cesium.defined(pick)) { |
| | | if (pick && pick.id && pick.id.tag && pick.id.tag == "Histogram") { |
| | | that.$store.state.propertiesInfo = { |
| | | title: pick.id.properties._exppointid._value, |
| | | name: pick.id.properties._geoname._value, |
| | | type: pick.id.properties.geotype._value, |
| | | botdepth: pick.id.properties._botdepth._value, |
| | | describe: pick.id.properties._describe._value, |
| | | } |
| | | that.$store.state.propertiesFlag = "2" |
| | | } else { |
| | | if (propertiesFlag == 1) { |
| | | that.$store.state.propertiesFlag = propertiesFlag |
| | | } else { |
| | | that.$store.state.propertiesFlag = null |
| | | } |
| | | } |
| | | that.$store.state.propertiesFlag = "2" |
| | | } else { |
| | | if (propertiesFlag == 1) { |
| | | that.$store.state.propertiesFlag = propertiesFlag |
| | |
| | | that.$store.state.propertiesFlag = null |
| | | } |
| | | } |
| | | } else { |
| | | if (propertiesFlag == 1) { |
| | | that.$store.state.propertiesFlag = propertiesFlag |
| | | } else { |
| | | that.$store.state.propertiesFlag = null |
| | | } |
| | | } |
| | | |
| | | }, Cesium.ScreenSpaceEventType.MOUSE_MOVE) |
| | | }, 500); |
| | | } |
| | |
| | | var coord = wkt.coordinates; |
| | | |
| | | var std = []; |
| | | var num = res.elev; |
| | | var num = res.elev == null ? 0 : res.elev; |
| | | |
| | | var height = 0; |
| | | for (var i in data) { |
| | | if (data[i].exppointid == exppointid) { |
| | |
| | | } |
| | | |
| | | var outlineList = this.outlineList; |
| | | for (var i in std) { |
| | | var line; |
| | | var geoname = std[i].geoname; |
| | | var col = outlineList.filter((ste) => { |
| | | if (ste.name == geoname) { |
| | | return res |
| | | } |
| | | }) |
| | | console.log(1, col) |
| | | if (col.length == 0) { |
| | | col = outlineList.filter((ste) => { |
| | | if (ste.name == '其他') { |
| | | if (std.length > 0) { |
| | | for (var i in std) { |
| | | var line; |
| | | var geoname = std[i].geoname; |
| | | var col = outlineList.filter((ste) => { |
| | | if (ste.name == geoname) { |
| | | return res |
| | | } |
| | | }) |
| | | |
| | | if (col.length == 0) { |
| | | col = outlineList.filter((ste) => { |
| | | if (ste.name == '其他') { |
| | | return res |
| | | } |
| | | }) |
| | | } |
| | | line = col[0].color |
| | | |
| | | var height = num - std[i].botdepth |
| | | // console.log(num, std[i].botdepth) |
| | | var layer = Viewer.entities.add({ |
| | | position: Cesium.Cartesian3.fromDegrees(coord[0], coord[1]), |
| | | tag: 'Histogram', |
| | | properties: std[i], |
| | | ellipse: { |
| | | semiMinorAxis: 2.0, //短轴 |
| | | semiMajorAxis: 2.0, //长轴 |
| | | height: height, //拉伸高度 elev gwaterdep |
| | | extrudedHeight: num, //离地高度 |
| | | rotation: Cesium.Math.toRadians(0), //旋转 |
| | | fill: true, //是否显示圆的填充 |
| | | material: Cesium.Color.fromCssColorString(line), //圆的颜色, |
| | | outline: false, //是否显示圆轮廓 |
| | | |
| | | }, |
| | | }); |
| | | num -= std[i].botdepth; |
| | | this.$store.state.histogramLayer.push(layer) |
| | | } |
| | | line = col[0].color |
| | | |
| | | var height = num - std[i].botdepth |
| | | var layer = Viewer.entities.add({ |
| | | position: Cesium.Cartesian3.fromDegrees(coord[0], coord[1]), |
| | | tag: 'Histogram', |
| | | properties: std[i], |
| | | ellipse: { |
| | | semiMinorAxis: 2.0, //短轴 |
| | | semiMajorAxis: 2.0, //长轴 |
| | | height: height, //拉伸高度 elev gwaterdep |
| | | extrudedHeight: num, //离地高度 |
| | | rotation: Cesium.Math.toRadians(0), //旋转 |
| | | fill: true, //是否显示圆的填充 |
| | | material: Cesium.Color.fromCssColorString(line), //圆的颜色, |
| | | outline: false, //是否显示圆轮廓 |
| | | |
| | | }, |
| | | }); |
| | | num -= std[i].botdepth; |
| | | this.$store.state.histogramLayer.push(layer) |
| | | this.$store.state.histLenged = true; |
| | | } |
| | | this.$store.state.histLenged = true; |
| | | |
| | | |
| | | |
| | | }, |
| | | |
| | | |