shuishen
2023-04-17 97f7177258515522c4158ecac70efd073f512bbb
geng
3 files modified
30 ■■■■ changed files
public/static/config.js 4 ●●●● patch | view | raw | blame | history
src/components/map/index.vue 20 ●●●● patch | view | raw | blame | history
src/views/home/index.vue 6 ●●●● patch | view | raw | blame | history
public/static/config.js
@@ -2,7 +2,7 @@
 * @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: 
 * 
@@ -45,6 +45,6 @@
    // 栅格地图的
    // 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',
}
src/components/map/index.vue
@@ -2,7 +2,7 @@
 * @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: 公用地图组件
 * 
@@ -293,15 +293,15 @@
            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({
src/views/home/index.vue
@@ -2,7 +2,7 @@
 * @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: 小区-栋-层-房屋
 *
@@ -639,8 +639,8 @@
            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)