|
@@ -1,51 +1,52 @@
|
|
|
-import { defineStore } from "pinia";
|
|
|
+import { defineStore } from 'pinia'
|
|
|
export const useMapStore = defineStore('map', {
|
|
|
- state: () => ({
|
|
|
- // layerShow:true, //服务列表是否开启
|
|
|
- // currentLayerType:"mainPage", //当前服务列表类型
|
|
|
- // currentLayerList:[ {
|
|
|
- // "label": "全市白模",
|
|
|
- // "D_CODE": "D85030103202409",
|
|
|
- // "S_CODE": "D8503010320240901",
|
|
|
- // "ADDRESS": "https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/ptgl/05195418",
|
|
|
- // "chosen":true,
|
|
|
- // "TYPE": "scene",
|
|
|
- // }], //当前服务列表
|
|
|
- // currentNum:null,
|
|
|
- // currentLayer:null,
|
|
|
- scale:null,
|
|
|
- // whiteMoldState:false, //白模状态
|
|
|
- camera:{ //相机信息
|
|
|
- heading:null,
|
|
|
- tilt:null,
|
|
|
- position:{
|
|
|
- x:null,
|
|
|
- y:null,
|
|
|
- z:null
|
|
|
- }
|
|
|
- },
|
|
|
- center:null,
|
|
|
- extent:null,
|
|
|
- // layerDetailObj:{}, //当前服务详情
|
|
|
- // layerDetailShow:false, //服务详情是否开启
|
|
|
- // left_board:true, //左侧板是否开启
|
|
|
- // right_board:false, //右侧板是否开启
|
|
|
- // path_planShow:false, //路线规划是否开启
|
|
|
- // simulate_flyShow:false, //模拟飞行是否开启
|
|
|
- draw_geometry:null, //绘制的几何
|
|
|
- gridCode:null, //当前网格编码
|
|
|
- uavId:null, //当前无人机编码
|
|
|
- flyInfo:null, //当前无人机信息
|
|
|
- currentUavInfo:null,
|
|
|
- realTimeUAVList:[], //实时无人机列表
|
|
|
- isFollow:false, //是否跟随无人机
|
|
|
- queryResult:[], //查询结果
|
|
|
- cubeResult:[], //查询结果
|
|
|
- }),
|
|
|
- persist: true,
|
|
|
- actions: {
|
|
|
- // setCameraInfo(data){
|
|
|
- // this.camera = data
|
|
|
- // }
|
|
|
- }
|
|
|
-})
|
|
|
+ state: () => ({
|
|
|
+ // layerShow:true, //服务列表是否开启
|
|
|
+ // currentLayerType:"mainPage", //当前服务列表类型
|
|
|
+ // currentLayerList:[ {
|
|
|
+ // "label": "全市白模",
|
|
|
+ // "D_CODE": "D85030103202409",
|
|
|
+ // "S_CODE": "D8503010320240901",
|
|
|
+ // "ADDRESS": "https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/ptgl/05195418",
|
|
|
+ // "chosen":true,
|
|
|
+ // "TYPE": "scene",
|
|
|
+ // }], //当前服务列表
|
|
|
+ // currentNum:null,
|
|
|
+ // currentLayer:null,
|
|
|
+ scale: null,
|
|
|
+ // whiteMoldState:false, //白模状态
|
|
|
+ camera: {
|
|
|
+ //相机信息
|
|
|
+ heading: null,
|
|
|
+ tilt: null,
|
|
|
+ position: {
|
|
|
+ x: null,
|
|
|
+ y: null,
|
|
|
+ z: null,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ center: null,
|
|
|
+ extent: null,
|
|
|
+ // layerDetailObj:{}, //当前服务详情
|
|
|
+ // layerDetailShow:false, //服务详情是否开启
|
|
|
+ // left_board:true, //左侧板是否开启
|
|
|
+ // right_board:false, //右侧板是否开启
|
|
|
+ // path_planShow:false, //路线规划是否开启
|
|
|
+ // simulate_flyShow:false, //模拟飞行是否开启
|
|
|
+ draw_geometry: null, //绘制的几何
|
|
|
+ gridCode: null, //当前网格编码
|
|
|
+ uavId: null, //当前无人机编码
|
|
|
+ flyInfo: null, //当前无人机信息
|
|
|
+ currentUavInfo: null,
|
|
|
+ realTimeUAVList: [], //实时无人机列表
|
|
|
+ isFollow: false, //是否跟随无人机
|
|
|
+ queryResult: [], //查询结果
|
|
|
+ cubeResult: {}, //查询结果
|
|
|
+ }),
|
|
|
+ persist: true,
|
|
|
+ actions: {
|
|
|
+ // setCameraInfo(data){
|
|
|
+ // this.camera = data
|
|
|
+ // }
|
|
|
+ },
|
|
|
+})
|