3 files modified
1 files added
| | |
| | | <!-- 全屏控制按钮 --> |
| | | <div class="screen-full-btn"> |
| | | <!-- <el-tooltip v-if="isFullscreen" content="缩放" placement="top" effect="dark"> |
| | | <i class="fa fa-compress" style="vertical-align: middle; cursor: pointer" @click="fullscreenchange"></i> |
| | | </el-tooltip> --> |
| | | <i class="fa fa-compress" style="vertical-align: middle; cursor: pointer" @click="fullscreenchange"></i> |
| | | </el-tooltip> --> |
| | | |
| | | <!-- <el-tooltip v-if="!isFullscreen" content="全屏" placement="top" effect="dark"> |
| | | <i class="fa fa-expand" style="vertical-align: middle; cursor: pointer" @click="fullscreenchange"></i> |
| | | </el-tooltip> --> |
| | | <i class="fa fa-expand" style="vertical-align: middle; cursor: pointer" @click="fullscreenchange"></i> |
| | | </el-tooltip> --> |
| | | <el-tooltip content="显示/隐藏" placement="top" effect="dark"> |
| | | <i class="fa fa-expand" style="vertical-align: middle; cursor: pointer" @click="switchShowHomeContent"></i> |
| | | </el-tooltip> |
| | |
| | | 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({ |
| | |
| | | let circleLayer = null |
| | | let DataSourcesArray = [] |
| | | let loading = null |
| | | |
| | | import { mapGetters } from 'vuex' |
| | | |
| | | let xinzhouLayer = null |
| | | |
| | | let treeData = [ |
| | | { |
| | |
| | | import keyPersonBox from './components/dialog/keyPersonBox.vue' |
| | | |
| | | import { initMapPosition } from '@/utils/mapPositionInit' |
| | | import { mapGetters } from 'vuex' |
| | | import { xinzhou } from './xinzhou.js' |
| | | |
| | | export default { |
| | | inject: ['userInfo'], |
| | |
| | | } |
| | | }) |
| | | } |
| | | // 绘制信州边界线 |
| | | let xinzhouRange = xinzhou.reduce( |
| | | (previous, current) => { |
| | | previous += current[0] + ',' + current[1] + ';' |
| | | return previous |
| | | }, |
| | | [] |
| | | ) |
| | | xinzhouLayer = new global.DC.VectorLayer('xinzhouLayer') |
| | | global.viewer.addLayer(xinzhouLayer) |
| | | let xinzhouPolyline = new global.DC.Polyline(xinzhouRange) |
| | | xinzhouPolyline.setStyle({ |
| | | width: 20, |
| | | material: global.DC.Namespace.Cesium.Color.fromBytes(255, 202, 143, 255), |
| | | clampToGround: true |
| | | }) |
| | | xinzhouLayer.addOverlay(xinzhouPolyline) |
| | | }) |
| | | |
| | | const that = this |
| | |
| | | }) |
| | | |
| | | window.addEventListener('resize', this.setDomStyle) |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | proxy: { |
| | | "/api": { |
| | | // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址 |
| | | target: "http://localhost:82", |
| | | // target: "http://192.168.0.100:82", |
| | | // target: "http://localhost:82", |
| | | target: "http://192.168.0.100:82", |
| | | // target: "http://17.20.10.3:82", |
| | | // target: "http://10.141.11.11:8081/api", |
| | | // ws: true, //启用webSocket6566 |