1.0.0 • Published 3 years ago

deviceon-baidumap-marker-cluster v1.0.0

Weekly downloads
7
License
-
Repository
-
Last release
3 years ago

baidu-marker-cluster

Project setup

npm install deviceon-baidumap-marker-cluster

How to use

import BmlMarkerClusterer from 'deviceon-baidumap-marker-cluster'

Vue.use(BmlMarkerClusterer)

<bml-marker-clusterer :averageCenter="true" @clusterHover="clusterHover($event)" @clusterOut="clusterOut" @clusterClick="clusterClick">
</bml-marker-clusterer>

function clusterClick() {
  console.log('clusterClick')
},
function clusterHover (e) {
  console.log('clusterHover', e.detail)
  // clusterHover {lat: 0, lng: 0, markers: []}
},
function clusterOut() {
  console.log('clusterOut')
}