让群集在地图缩放上爬行

时间:2019-04-29 14:59:55

标签: javascript leaflet leaflet.markercluster

在手动取消未标记之前,如何使单击的markerCluster在地图缩放上保持蜘蛛状排列?如果我做对了,在每个zoomstart集群更新中,是否每次都手动重新打开它?

this.cluster = leaflet.markerClusterGroup({
    zoomToBoundsOnClick: false,
    showCoverageOnHover: false
});

this.cluster.on("clusterclick", event => {
    event.layer.spiderfy();
    // I guess some magic should happen at this part of code
});

0 个答案:

没有答案