Skip to content

Instantly share code, notes, and snippets.

@danielreiser
Created July 27, 2021 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielreiser/540df5345c554ab2615b3c8b335e209c to your computer and use it in GitHub Desktop.
Save danielreiser/540df5345c554ab2615b3c8b335e209c to your computer and use it in GitHub Desktop.
Install tooling and kick of the conversion process
# We need make in order for openmaptiles to work correctly
sudo apt-get install -y make
# get the openmaptiles tooling
git clone https://github.com/openmaptiles/openmaptiles.git
cd ./openmaptiles
# We've decided to only get the mapdata until zoom level 12. It's a good idea to check first which zoom levels you'll need. Eveything higher then 12 take a lot of time and space
sed -i "/MAX_ZOOM=/c\MAX_ZOOM=12" .env
# Prep openmaptiles and download the raw OSM data for europe
make
wget -O data/https://download.geofabrik.de/europe-latest.osm.pbf
sudo chown -R $(whoami) .
# Start the converting the raw data into an usable format for our tile server
./quickstart.sh europe-latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment