jperelli / vue2-leaflet-markercluster

markercluster plugin extension for vue2-leaflet package
MIT License
132 stars 55 forks source link

Adding data to cluster #61

Closed SolimanGit closed 2 years ago

SolimanGit commented 2 years ago

Hi ! So without the marker cluster when i move on the map a call is triggered to add new data to geojson, it works really well but with marker-cluster, new datas are not being added to the cluster. Is there a way to refresh the data ? ( refreshCluster() doesn't do the trick ) Thx in advance and sry if the solution is easy

  <l-marker-cluster
    ref="markerCluster"
    :options="{
      showCoverageOnHover: false
    }"
  >
    <l-geojson
      v-if="
        data_geo.features.length != 0 &&
          data_geo.features[0].geometry.type == 'Point'
      "
      :geojson="data_geo"
      :options="options"
    ></l-geojson>
  </l-marker-cluster>

UPDATE Ok didn't see issue #20, it's the same problem and no solution found