咨询个问题:需求原因,baidu-map容器中存在俩个bm-polyline覆盖组件标签,同时存在时,怎么区分各自的点击click事件?目前存在一个另一个就无法触发。。。
yangyangjizi opened this issue · comments
yangyangjizi commented
<baidu-map
class="map"
:center="defauftCenter"
:high-resolution="false"
:zoom="defauftZoom"
:map-click="false"
:double-click-zoom="false"
@ready="createMap"
@mousemove="outMousemove"
@rightclick="addNewcoor"
@click="paintPolyline"
:scroll-wheel-zoom="true"
>
<bm-polyline
v-for="(one, index) in polylineDataList"
:key="'polyline' + index"
:path="one"
:stroke-color="
one[0].indexType == 'RUINS'
? 'red'
: one[0].indexType == 'COLLECT'
? 'yellow'
: one[0].indexType == 'SECTION'
? '#9400D3'
: one[0].indexType == 'AREA'
? 'blue'
: '#FF00FF'
"
:stroke-opacity="0.5"
:stroke-weight="4"
:editing="false"
@mouseover="mouseoverLabel('LINE', one, $event)"
@click="oneNotice('polyline', one, $event)"
>
yangjingrun commented
我也遇到这问题了,请问楼主解决了没