I am using Leaflet to present around 90.000 data points. My test code is generated using the plugin QGIS2leaf in QGIS 10.10.1. I am using clustering and reviewing the code I can see that this is "leaflet.markercluster.js". In principle this works well.
For practical use I have a capacity problem. The clustering works fine when zooming in and out. The problem is that takes around 30 seconds before the map pops up. Some clients even crashes.
The reason for this seem to be transfer of the geojson file (dev tools confirms this). It is now at 12 MB down from 61MB. Removing all the attribute data evidently helped some.
I could probably remove some of the decimal numbers from the coordinates. But I would only gain a couple of percent.
How can I tweak this further:
- Is there a way to transfer zipped geojson files to client (Leaflet).
- The geojson file is mostly (70%) repeated text. Is there a way to transfer the coordinates and attributes without this overhead?
- Can Leaflet do other formats which in this respect are more efficient?