Huge geo data rendering, alternative to GeoJSON

678 views
Skip to first unread message

Lukas Svoboda

unread,
Mar 26, 2016, 5:35:33 AM3/26/16
to Leaflet
Currently I am using L.TileLayer.GeoJSON. My GeoJSON data are huge.
Unfortunately TileLayer.GeoJSON is really slow and after browsing some time, it's start to freeze.

Unfortunately cannot use geojson-vt  too. The data are still huge to load it at one.

I didn't find any alternative, or another way how to do that.
Any suggestions?

If no alternative exists, let me introduce one idea:
  • On the server side I will serve only few (let's say one) zoom level, e.g. 14 for my purpose.
  • On the clinet (leaflet) side bind 'moveend' event with callback:
    • get bounding box
    • calculate their tiles on my zoom level
    • create new geojson-vt layer for it unless it already exists
    • for clicking on events I will use leafletPip.pointInLayer as describe in https://github.com/mapbox/geojson-vt/issues/42


I am new in map, leaflet etc. So, make it the sense? Is it the right way? Any other ways? Is there any issues I did't realize?


Thanks.

Matt Travis

unread,
Mar 31, 2016, 8:42:16 AM3/31/16
to Leaflet
Have you seen this: https://ovrdc.github.io/parcel-viewer/#10/38.8103/-82.3398

Uses topojson and then pip to get the popup details.

Matt

Lukas Svoboda

unread,
Mar 31, 2016, 8:47:13 AM3/31/16
to leafl...@googlegroups.com
Thanks for answer. Yes, it was discussed at https://github.com/mapbox/geojson-vt/issues/42

Currently I build proof of concept of solution proposed above. I do not have pip employed yet, but I am able to load geojson tiles and render them through geojson-vt.


--

---
You received this message because you are subscribed to a topic in the Google Groups "Leaflet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leaflet-js/DoND1DMwt_A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Lukas Svoboda
Reply all
Reply to author
Forward
0 new messages