| | |
| | | // that.switchImg() |
| | | |
| | | // 外网 |
| | | // global.viewer.imageryLayers.addImageryProvider( |
| | | // new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({ |
| | | // url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=e45274b0235bb913eceb393aabbf9c9c', |
| | | // subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'], |
| | | // format: 'image/jpeg', |
| | | // show: true, |
| | | // maximumLevel: 18 |
| | | // }) |
| | | // ) |
| | | global.viewer.imageryLayers.addImageryProvider( |
| | | new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({ |
| | | url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=e45274b0235bb913eceb393aabbf9c9c', |
| | | subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'], |
| | | format: 'image/jpeg', |
| | | show: true, |
| | | maximumLevel: 18 |
| | | }) |
| | | ) |
| | | |
| | | // 设置地图初始位置,角度等 |
| | | global.viewer.camera.setView({ |
| | |
| | | |
| | | this.$EventBus.$on('showThreeDimensions', (params) => { |
| | | that.showThreeDimensions(params.positions, params.minHeight, params.maxHeight) |
| | | }) |
| | | |
| | | this.$EventBus.$on('switchThreeDimensions', (params) => { |
| | | that.switchThreeDimensions(params) |
| | | }) |
| | | |
| | | this.$EventBus.$on('clearHouse3D', () => { |
| | |
| | | polygonHierarchy: new global.DC.Namespace.Cesium.PolygonHierarchy( |
| | | global.DC.Namespace.Cesium.Cartesian3.fromDegreesArray(floorPositions), |
| | | ), |
| | | extrudedHeight: maxHeight,//分层顶部海拔 |
| | | height: minHeight,//分层底部海拔 |
| | | extrudedHeight: 80,//分层顶部海拔 |
| | | height: 50,//分层底部海拔 |
| | | }), |
| | | |
| | | attributes: { |
| | |
| | | global.viewer.scene.primitives.add(curPolygon) |
| | | }, |
| | | |
| | | // 建筑高亮切换显示隐藏 |
| | | switchThreeDimensions (boolean) { |
| | | if (!curPolygon) return |
| | | curPolygon.show = boolean |
| | | }, |
| | | |
| | | // 清除建筑3D |
| | | clearHouse3D () { |
| | | global.viewer.scene.primitives.remove(curPolygon) |
| | |
| | | height: countSizeVh(36); |
| | | line-height: countSizeVh(36); |
| | | border: countSizeVh(1) solid #ccc; |
| | | |
| | | .el-checkbox .el-checkbox__inner { |
| | | width: countSizeVh(12); |
| | | height: countSizeVh(12); |
| | | border-radius: countSizeVh(1); |
| | | } |
| | | |
| | | .el-checkbox .el-checkbox__inner::after { |
| | | height: countSizeVh(7); |
| | | left: countSizeVw(5, 1920); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | {{ |
| | | item.name |
| | | }} |
| | | <div @click.stop> |
| | | <div @click.stop title="显示/隐藏楼栋高亮"> |
| | | <el-checkbox v-model="isBuildHighLightchecked" |
| | | v-show="buildingChoosed.name == item.name" |
| | | @change="changeBuildHighLightchecked"></el-checkbox> |
| | |
| | | :class="{ on: floorChoosed == value.properties.fojcu }"> |
| | | {{ value.properties.fojcu }} |
| | | <!-- <div class="flow"></div> |
| | | <div class="warning"></div>--> |
| | | <div class="warning"></div>--> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | methods: { |
| | | changeBuildHighLightchecked (e) { |
| | | console.log('changeBuildHighLightchecked-----------------------------------', e) |
| | | this.$EventBus.$emit("switchThreeDimensions", e) |
| | | }, |
| | | |
| | | // 获取半年前时间 |
| | |
| | | this.pictLoading = true |
| | | this.buildingList = [] |
| | | getSearchExtensivelyBgAoiDeepdata(ak, region, ids, infos).then((res) => { |
| | | console.log('res', res) |
| | | console.log('getSearchExtensivelyBgAoiDeepdata---then', res) |
| | | let baseUrl |
| | | if (process.env.NODE_ENV == "development") { |
| | | // 开发 |
| | |
| | | this.unitHouseChoosed = [] |
| | | this.pictLoading = true |
| | | if (!aoiArr) { |
| | | console.log('if (!aoiArr)') |
| | | this.$EventBus.$emit("clearHouse3D") |
| | | this.$EventBus.$emit("toPosition", { |
| | | ...item, |
| | |
| | | // 获取户籍人口重点人口数据 |
| | | this.choosedBuildId = item.build_id |
| | | // 重点人口户籍人口 |
| | | console.log('before--getVillagePersonStatisticInfoByBuildId') |
| | | this.getVillagePersonStatisticInfoByBuildId(item.build_id) |
| | | // 楼栋单元楼层户室查询 |
| | | console.log('before--getHouses') |
| | | this.getHouses(item.build_id, "361102", aoiArr) |
| | | this.floorsType = 1 |
| | | document.querySelector(".floor-num").style.left = "0px" |