Esri / esri-leaflet-cluster

Plugin for Esri Leaflet that clusters a Feature Layer using Leaflet.markercluster
http://esri.github.io/esri-leaflet/
Apache License 2.0
23 stars 23 forks source link

The way to draw near 340000 features #27

Closed NepipenkoIgor closed 2 years ago

NepipenkoIgor commented 5 years ago

Hi all. I need to solve problem and show near 340000 on esri leaflet map . Now i use cluster and its work amazing during i have near 5000 points This is snippet of code where i try to add layer .

    const featureLayer = L.esri.Cluster.featureLayer({
      url: `${this.currentServiceURL}/${id}`,
      renderer: new L.Canvas(),
      simplifyFactor: 0.35,
    });
      featureLayer.addTo(this.lMap);

Could you give suggestions in which way could i solve problem ??

jgravois commented 5 years ago

Could you give suggestions in which way could i solve problem ??

yup. you'd need to rewrite this plugin to use something like https://github.com/mapbox/supercluster

related: #14

NepipenkoIgor commented 5 years ago

@jgravois Thanks. I will try