qgis2web
qgis2web copied to clipboard
Geojson-vt
Could Geojson-vt be incorporated to allow much larger geojson files?
https://github.com/mapbox/geojson-vt
Yes, potentially. I've not looked into it through unfamiliarity with it - eg, does it still allow labelling/popups/highlight on hover? I guess what I need to know is whether it can be a simply option for vector layers, or whether it has other effects.
Contributions extremely welcome,..
So as far as I can see, the following steps would be required to get this to work:
- Include Leaflet.VectorGrid (no problem - already used for external VTs)
- Use LVG.slicer to create the layer
- Style using the LVG syntax, not normal Leaflet (I can't get this to work manually yet on a point dataset)
- Add per-layer checkboxes in the dialog to specify on-the-fly VT
I'm unsure what knock-on effects this might have on eg layer interactivity, labels, and popups, but even if we can't have those, it's another option for users.