dafrok / bmaplib.markerclusterer Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
[BUG 反馈] bm-label 在marker里,会在刷新数据时,被清掉而丢失
浏览器版本号
chrome 63
Vue 版本号
2.0
组件库版本号
0.20.4
现象描述
bm-label放在bm-marker里,在数据进行切换时,marker里面的label丢失了。
<!-- 聚合车辆点 -->
<bml-marker-clusterer :averageCenter="true">
<template v-for="(item, index) in carData">
<bm-marker v-if="filterBar.vehicleStatus.indexOf(item.mixStatus) > -1" :key="item.id" :position="{lng: item.lng, lat: item.lat}" :icon="{url: pointImgList[item.mixStatus], size: {width: 24, height: 24}}" @click="openInfoWindow($event, item, 2)" >
<bm-label :content="item.soc == undefined ? '···' : item.soc + '%'" :title="item.soc == undefined ? '未知' : ''" :labelStyle="item.mixStatus == 6 ? warningStyle : normalStyle" :offset="{width: -8, height: -22}"/>
</bm-marker>
</template>
</bml-marker-clusterer>
<!-- 聚合车辆点 -->
当过滤的数组filterBar.vehicleStatus中数据发生变化时,保留下来的marker点,里面的label标签消失了。
网上找了方案:
http://blog.csdn.net/wd4java/article/details/50486980
希望@Dafrok能尽快更新下,修复这个问题
还请提交下.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.