osmbe / openstreetmap-carto-be

A general-purpose OpenStreetMap mapnik style, in CartoCSS (Belgium)
Other
11 stars 2 forks source link

Offline use #19

Open gertst opened 3 years ago

gertst commented 3 years ago

Thanks for the great effort you all did for making this available!

Is there a way to download the tiles (only a few zoom levels) and use them locally using Leaflet.js? Is this legally ok? If yes, what tool can be used to do so?

Gert

jbelien commented 3 years ago

Hello @gertst ,

There is no way to download the tiles from https://tile.openstreetmap.be/. It's not allowed to bulk scrap all the tiles from https://tile.openstreetmap.be/ either because it would cause a charge on the server too heavy.

If you want to have your tiles locally, I would suggest to render it yourself. You can have a look at the documentation here : https://github.com/jbelien/openstreetmap-carto-be/wiki/Install-Rendering-(Ubuntu-18.04)

gertst commented 3 years ago

Thanks for the quick reply. I was a bit afraid that this would be difficult. As an alternative I will look for a GeoJSON vector file with contours for Belgian provinces and municipalities. Any idea where this should be available?

Thanks! Gert

jbelien commented 3 years ago

You could use official data : https://statbel.fgov.be/fr/open-data/secteurs-statistiques-2020

Or from OpenStreetMap, use Overpass to export what you need: