修改 地图显示逻辑

This commit is contained in:
GGJ
2024-12-13 15:57:41 +08:00
parent ce34572df5
commit 0cd5598e8c
2 changed files with 13 additions and 8 deletions

View File

@@ -45,14 +45,16 @@
<bm-map-type :map-types="['BMAP_NORMAL_MAP', 'BMAP_HYBRID_MAP']"
anchor='BMAP_ANCHOR_TOP_RIGHT'></bm-map-type>
<!-- 线-->
<div v-if='zoom > 13'>
<bm-polyline :path='path' v-for='(path, index) in polyline' :key='index'></bm-polyline>
</div>
<!-- 变电站-->
<template v-if='zoom > 12'>
<template v-if='zoom > 13'>
<bm-marker :position='path' v-for='path in siteList' :key='path.subId' :icon='path.icon'
@click='markerClick(path)'></bm-marker>
</template>
<!-- 点 -->
<BmlMarkerClusterer>
<BmlMarkerClusterer maxZoom='12'>
<bm-marker :position='path' v-for='path in areaLineInfo' :key='path.lineId' :icon='path.icon'
@click='markerClick(path)'></bm-marker>
</BmlMarkerClusterer>

View File

@@ -73,9 +73,12 @@
anchor='BMAP_ANCHOR_TOP_RIGHT'
></bm-map-type>
<!-- 线-->
<div v-if='zoom > 13'>
<bm-polyline :path='path' v-for='(path, index) in polyline' :key='index'></bm-polyline>
</div>
<!-- 变电站-->
<template v-if='zoom > 12'>
<template v-if='zoom > 13'>
<bm-marker
:position='path'
v-for='path in siteList'
@@ -85,7 +88,7 @@
></bm-marker>
</template>
<!-- 点 -->
<BmlMarkerClusterer>
<BmlMarkerClusterer maxZoom='12'>
<bm-marker
:position='path'
v-for='path in areaLineInfo'