|
@@ -165,6 +165,14 @@ const getDrawTool = () => {
|
|
|
}
|
|
|
return {};
|
|
|
};
|
|
|
+const getMarkers = () => {
|
|
|
+ if (['satellite2', 'satellite3'].includes(activeMap.value)) {
|
|
|
+ return map2Ref.value.getMarkers();
|
|
|
+ } else if (['vectorgraph', 'satellite'].includes(activeMap.value)) {
|
|
|
+ return mapRef.value.getMarkers();
|
|
|
+ }
|
|
|
+ return {};
|
|
|
+};
|
|
|
let showNearbyVideos = ref(false);
|
|
|
let location = reactive([]);
|
|
|
// 显示附近视频
|
|
@@ -181,6 +189,7 @@ const handleShowVideo = (data) => {
|
|
|
|
|
|
provide('getMap', getMap);
|
|
|
provide('getDrawTool', getDrawTool);
|
|
|
+provide('getMarkers', getMarkers);
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|