| | |
| | | } else { |
| | | overlayData.show = false |
| | | // this.$parent.removeArrowsListLayer(overlayData) |
| | | let altitude = overlayData.attrParams.item.altitude.split(',') |
| | | let altitude = overlayData.attrParams.item.altitude.split(',').map(item => { |
| | | if (item < 0) { |
| | | item = 0 |
| | | } |
| | | |
| | | item = Number(item) |
| | | |
| | | return item |
| | | }) |
| | | let position = overlayData.attrParams.item.position.slice(11, overlayData.attrParams.item.position.length - 1).replace(/,/g, ';').replace(/ /g, ',') |
| | | let positions |
| | | |
| | | if (position.indexOf('(') != -1) { |
| | | position = position.replace("(", "") |
| | | position = position.replace(")", "") |
| | | } |
| | | |
| | | let positions = position |
| | | if (altitude && altitude.length) positions = position.split(';').map((item, index) => `${item},${altitude[index]}`).join(';') |
| | | let coverage = new global.DC.Polygon(positions) |
| | | |
| | |
| | | overlay.attrParams.item.position = `LINESTRING(${params.position})` |
| | | let positions = params.position.split(',').map(item => { |
| | | item = item.split(' ') |
| | | item = new global.DC.Position(item[0], item[1], 140) |
| | | item = new global.DC.Position(item[0], item[1], 20) |
| | | |
| | | return item |
| | | }) |
| | |
| | | let positionStr = '' |
| | | let iconUrl = {} |
| | | |
| | | |
| | | |
| | | if (this.restSelectBox) { |
| | | positionStr = polygonPlotData + ',' + polygonPlotData |
| | | } else { |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-07-13 15:44:37 |
| | | * @LastEditTime: 2023-07-19 15:07:05 |
| | | * @FilePath: \srs-police-affairs\src\views\home\index.vue |
| | | * @Description: 小区-栋-层-房屋 |
| | | * |
| | |
| | | </div> |
| | | |
| | | <el-dialog :title="panoramaTitle" :visible.sync="panoramaVisible" :before-close="panoramaBeforeClose" :modal="true" |
| | | :modal-append-to-body="false" :close-on-click-modal="false" class="panorama-details-box" :class="{'panorama-amplification': panoramaIcon == 'el-icon-reduce-btn'}"> |
| | | :modal-append-to-body="false" :close-on-click-modal="false" class="panorama-details-box" |
| | | :class="{ 'panorama-amplification': panoramaIcon == 'el-icon-reduce-btn' }"> |
| | | <template slot="title"> |
| | | <div class="title-box"> |
| | | {{ panoramaTitle }} |
| | | {{ panoramaTitle }} |
| | | |
| | | <span> |
| | | <i :class="panoramaIcon" @click="panoramaIconClick"></i> |
| | |
| | | strokeWidth: 0, |
| | | clampToGround: true |
| | | }).then(function (dataSource) { |
| | | let entities = dataSource.entities.values |
| | | //修改entity样式 |
| | | for (let i = 0; i < entities.length; i++) { |
| | | let entity = entities[i] |
| | | entity.polyline = { |
| | | positions: entity.polygon.hierarchy._value.positions, |
| | | width: 2, |
| | | material: global.DC.Namespace.Cesium.Color.fromCssColorString('#ED7C2F') |
| | | } |
| | | } |
| | | |
| | | DataSourcesArray.push(dataSource) |
| | | |
| | | that.areaPolygonLayerShow == false ? dataSource.show = false : dataSource.show = true |
| | | |
| | | global.viewer.dataSources.add(dataSource) |
| | | }) |
| | | }) |