Giter Site home page Giter Site logo

bmaplib.markerclusterer's People

Contributors

dafrok avatar dependabot[bot] avatar ipcjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bmaplib.markerclusterer's Issues

【求更新点聚库】bm-label 在marker里,会在刷新数据时,被清掉而丢失

[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能尽快更新下,修复这个问题

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.