修改 地图显示逻辑
This commit is contained in:
@@ -45,14 +45,16 @@
|
|||||||
<bm-map-type :map-types="['BMAP_NORMAL_MAP', 'BMAP_HYBRID_MAP']"
|
<bm-map-type :map-types="['BMAP_NORMAL_MAP', 'BMAP_HYBRID_MAP']"
|
||||||
anchor='BMAP_ANCHOR_TOP_RIGHT'></bm-map-type>
|
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>
|
<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'
|
<bm-marker :position='path' v-for='path in siteList' :key='path.subId' :icon='path.icon'
|
||||||
@click='markerClick(path)'></bm-marker>
|
@click='markerClick(path)'></bm-marker>
|
||||||
</template>
|
</template>
|
||||||
<!-- 点 -->
|
<!-- 点 -->
|
||||||
<BmlMarkerClusterer>
|
<BmlMarkerClusterer maxZoom='12'>
|
||||||
<bm-marker :position='path' v-for='path in areaLineInfo' :key='path.lineId' :icon='path.icon'
|
<bm-marker :position='path' v-for='path in areaLineInfo' :key='path.lineId' :icon='path.icon'
|
||||||
@click='markerClick(path)'></bm-marker>
|
@click='markerClick(path)'></bm-marker>
|
||||||
</BmlMarkerClusterer>
|
</BmlMarkerClusterer>
|
||||||
|
|||||||
@@ -73,9 +73,12 @@
|
|||||||
anchor='BMAP_ANCHOR_TOP_RIGHT'
|
anchor='BMAP_ANCHOR_TOP_RIGHT'
|
||||||
></bm-map-type>
|
></bm-map-type>
|
||||||
<!-- 线-->
|
<!-- 线-->
|
||||||
|
<div v-if='zoom > 13'>
|
||||||
<bm-polyline :path='path' v-for='(path, index) in polyline' :key='index'></bm-polyline>
|
<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
|
<bm-marker
|
||||||
:position='path'
|
:position='path'
|
||||||
v-for='path in siteList'
|
v-for='path in siteList'
|
||||||
@@ -85,7 +88,7 @@
|
|||||||
></bm-marker>
|
></bm-marker>
|
||||||
</template>
|
</template>
|
||||||
<!-- 点 -->
|
<!-- 点 -->
|
||||||
<BmlMarkerClusterer>
|
<BmlMarkerClusterer maxZoom='12'>
|
||||||
<bm-marker
|
<bm-marker
|
||||||
:position='path'
|
:position='path'
|
||||||
v-for='path in areaLineInfo'
|
v-for='path in areaLineInfo'
|
||||||
|
|||||||
Reference in New Issue
Block a user