A simple starting setup for hosting your own OpenStreetMap Vector Tiles.
Install docker
- Extract the
data/test_data.zip
to thedata
folder. - Start the server with
docker compose up
- Visit http://localhost:8000/
You will need some geo data in pbf format. You can download this e.g. from https://download.geofabrik.de/.
- Run wsl ubuntu with
wsl --install
- Install make with
sudo apt install make
- Run
git clone https://github.com/openmaptiles/openmaptiles
- Setup your
data
folder withmkdir -p ./openmaptiles/data && cd openmaptiles && explorer.exe .
- Paste your downloaded
<your-map>.osm.pbf
inside thatdata
folder - Run
sudo ./quickstart.sh <your-map>
(You may need to enable wsl integration with your wsl distro in the docker desktop settings underSettings
>Resources
>WSL integration
) - Access the generated data under
data/tiles.mbtiles
modify the settings in the .env file, the defaults:
MIN_ZOOM=0
MAX_ZOOM=7
Hints:
Small increments! Never starts with the MAX_ZOOM = 14
The suggested MAX_ZOOM = 14
- use only with small extracts