qgis2web icon indicating copy to clipboard operation
qgis2web copied to clipboard

Geojson-vt

Open mb72 opened this issue 5 years ago • 2 comments

Could Geojson-vt be incorporated to allow much larger geojson files?

https://github.com/mapbox/geojson-vt

mb72 avatar Mar 13 '19 08:03 mb72

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,..

tomchadwin avatar Mar 13 '19 10:03 tomchadwin

So as far as I can see, the following steps would be required to get this to work:

  1. Include Leaflet.VectorGrid (no problem - already used for external VTs)
  2. Use LVG.slicer to create the layer
  3. Style using the LVG syntax, not normal Leaflet (I can't get this to work manually yet on a point dataset)
  4. 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.

tomchadwin avatar Aug 20 '19 12:08 tomchadwin