vsaase / covid19selfreport

Providing a dashboard for geographically self reporting symptomatic cases of Corona Virus Disease (Covid-19, nCov19, Coronavirus SARS-CoV-2), using Flask and Leaflet and Google App Engine.
https://covid19-selfreport.appspot.com/
GNU General Public License v3.0
6 stars 6 forks source link

Postleitzahlen information too big, how to integrate it in Leaflet? #2

Open vsaase opened 4 years ago

vsaase commented 4 years ago

The geojson file for the Postleitzahlen from here is 100 MB ! How do we visualize that without the user browser having to download all of it? Does Leaflet.js provide a solution? Can we find and use a downsampled version with a much lower edge count for the areas?

vsaase commented 4 years ago

we could only have the central point in the PLZ area in the online app, with a marker that is only shown at higher zoom levels, much like the markers currently for the bundeslaender

vsaase commented 4 years ago

we now have a folder plz which contains a geojson plz file which is 9 MB size, still about an order of magnitude too big

webwizrd commented 4 years ago

I guess you got the map from here: https://www.suche-postleitzahl.org/plz-karte-erstellen ? What about using the centroid map (~1MB)?

What about alternatively using the Shapefile Plugin for Leaflet and the PLZ Shapefile (3MB)?