无人机管理后台前端(已迁走)
shuishen
2025-04-28 80879c8fb4b4263a241ce6c6cbafdc2c7dd162d6
地图初始化位置调整
地图航线加载样式调整
1 files modified
12 ■■■■ changed files
src/components/map-container/mapContainer.vue 12 ●●●● patch | view | raw | blame | history
src/components/map-container/mapContainer.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-25 15:07:51
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2025-04-24 22:12:05
 * @LastEditTime: 2025-04-28 11:34:40
 * @FilePath: \drone-web-manage\src\components\map-container\mapContainer.vue
 * @Description: 
 * 
@@ -67,8 +67,11 @@
        credit: 'stand_tc',
    })
    window.$viewer = new DC.Viewer('viewer-container')
    window.$viewer = new DC.Viewer('viewer-container',)
    window.$viewer.locationBar.enable = false
    window.$viewer?.zoomToPosition(new DC.Position(115.892151, 28.676493, 1000000, 0, -90, 0))
    window.$viewer?.imageryLayers.addImageryProvider(imageryProvider_stand)
    window.$viewer?.imageryLayers.addImageryProvider(imageryProvider_standZh)
@@ -136,7 +139,10 @@
    let polyline = new DC.Polyline(positionStr)
    polyline.setStyle({
        width: 4,
        material: DC.Color.DEEPSKYBLUE,
        material: new DC.PolylineTrailMaterialProperty({
            color: DC.Color.DEEPSKYBLUE,
            speed: 10
        }),
        clampToGround: true
    })
    polylineLayer.addOverlay(polyline)