|
@@ -13,6 +13,7 @@
|
|
<SwitchMapTool :active-map="activeMap" class="tool-box" @switch-map="switchMap" />
|
|
<SwitchMapTool :active-map="activeMap" class="tool-box" @switch-map="switchMap" />
|
|
<!--时间轴-->
|
|
<!--时间轴-->
|
|
<TimeAxis />
|
|
<TimeAxis />
|
|
|
|
+ <DrawTools v-if="showDrawTools" @handleAnalysisData="handleAnalysisData" />
|
|
<NearbyVideos v-if="showNearbyVideos" v-model="showNearbyVideos" :location="location" />
|
|
<NearbyVideos v-if="showNearbyVideos" v-model="showNearbyVideos" :location="location" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -30,6 +31,7 @@ import { deepClone } from '@/utils';
|
|
import { getPointInfo } from '@/api/globalMap';
|
|
import { getPointInfo } from '@/api/globalMap';
|
|
import RightMenu from './RightMenu/index.vue';
|
|
import RightMenu from './RightMenu/index.vue';
|
|
import { PointType } from '@/api/globalMap/type';
|
|
import { PointType } from '@/api/globalMap/type';
|
|
|
|
+import DrawTools from '@/views/globalMap/RightMenu/DrawTools.vue';
|
|
|
|
|
|
const rightMenuRef = ref(null);
|
|
const rightMenuRef = ref(null);
|
|
const mapData = reactive(logicalData);
|
|
const mapData = reactive(logicalData);
|
|
@@ -41,7 +43,6 @@ let activeMap = ref('logical');
|
|
const switchMap = (key) => {
|
|
const switchMap = (key) => {
|
|
activeMap.value = key;
|
|
activeMap.value = key;
|
|
};
|
|
};
|
|
-
|
|
|
|
let pointType = ref<PointType[]>([]);
|
|
let pointType = ref<PointType[]>([]);
|
|
let markerList = ref([]);
|
|
let markerList = ref([]);
|
|
const addMarkers = (item) => {
|
|
const addMarkers = (item) => {
|
|
@@ -69,6 +70,7 @@ const addMarkers = (item) => {
|
|
const data = res.data && res.data.list ? res.data?.list : [];
|
|
const data = res.data && res.data.list ? res.data?.list : [];
|
|
markerList.value = data;
|
|
markerList.value = data;
|
|
data.forEach((item2) => {
|
|
data.forEach((item2) => {
|
|
|
|
+ debugger
|
|
// 获取图标
|
|
// 获取图标
|
|
if (iconList[item2.dataType]) {
|
|
if (iconList[item2.dataType]) {
|
|
item2.icon = iconList[item2.dataType].image;
|
|
item2.icon = iconList[item2.dataType].image;
|
|
@@ -141,7 +143,9 @@ const selectSearchMarker = (item) => {
|
|
}
|
|
}
|
|
dom.addSearchMarker(item2);
|
|
dom.addSearchMarker(item2);
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+const handleAnalysisData = (data) => {
|
|
|
|
+ rightMenuRef.value.handleMenu('空间分析', data);
|
|
|
|
+};
|
|
// 获取地图元素操作
|
|
// 获取地图元素操作
|
|
const getMap = () => {
|
|
const getMap = () => {
|
|
if (['satellite2', 'satellite3'].includes(activeMap.value)) {
|
|
if (['satellite2', 'satellite3'].includes(activeMap.value)) {
|