| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-02-21 14:16:56 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-03-16 09:35:36 |
| | | * @LastEditTime: 2023-04-17 14:48:10 |
| | | * @FilePath: \srs-police-affairs\public\static\config.js |
| | | * @Description: |
| | | * |
| | |
| | | |
| | | // 栅格地图的 |
| | | // VUE_APP_MAP_YX: 'http://10.141.11.11:80/ysapi', |
| | | VUE_APP_MAP_YX: 'http://10.141.11.11:80/data/dom', |
| | | VUE_APP_MAP_YX: 'http://10.141.11.11:80/data', |
| | | VUE_APP_MAP_SL: 'http://10.141.11.11:80/slapi', |
| | | } |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 17:00:30 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-04-17 09:25:43 |
| | | * @LastEditTime: 2023-04-17 14:47:34 |
| | | * @FilePath: \srs-police-affairs\src\components\map\index.vue |
| | | * @Description: 公用地图组件 |
| | | * |
| | |
| | | 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({ |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-04-09 04:18:11 |
| | | * @LastEditTime: 2023-04-17 14:46:58 |
| | | * @FilePath: \srs-police-affairs\src\views\home\index.vue |
| | | * @Description: 小区-栋-层-房屋 |
| | | * |
| | |
| | | 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), |
| | | width: 10, |
| | | material: global.DC.Namespace.Cesium.Color.fromBytes(255, 134, 62, 255), |
| | | clampToGround: true |
| | | }) |
| | | xinzhouLayer.addOverlay(xinzhouPolyline) |