Large dataset of markers or dots in Leaflet

前端 未结 5 1429
感动是毒
感动是毒 2020-11-27 13:15

I want to render about 10.000 markers or dots on a leaflet map. I already did it the regular way and I found it is way slower compared to Google Maps. I\'m looking for a way

5条回答
  •  余生分开走
    2020-11-27 13:48

    [2019]

    Maybe a little too late but Pedro Vicente's answer seems to be the best option out there. Leaflet.glify ( https://github.com/robertleeplummerjr/Leaflet.glify.) is good but you don't have options other than create a dot, shapes and line on your map. (no customization yet.) PixiOverlay works with native/custom markers. It also has nice visualization (animation,scaling,etc..) It also works in IE 11. For me it's a must if you're dealing with tons of markers. go try it out https://github.com/manubb/Leaflet.PixiOverlay

    P.S Glify and PixiOverlay are both utilizing WebGL so performance varies on your users' computer.

提交回复
热议问题