Skip to content

A simple starting setup for self-hosting OSM vector tiles

License

Notifications You must be signed in to change notification settings

nudopnu/open-map-tiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open-map-tiles 🌍

A simple starting setup for hosting your own OpenStreetMap Vector Tiles.

Prerequisites

Install docker

Run server

  1. Extract the data/test_data.zip to the data folder.
  2. Start the server with docker compose up
  3. Visit http://localhost:8000/

Generate custom region on windows (wsl)

You will need some geo data in pbf format. You can download this e.g. from https://download.geofabrik.de/.

  1. Run wsl ubuntu with wsl --install
  2. Install make with sudo apt install make
  3. Run git clone https://github.com/openmaptiles/openmaptiles
  4. Setup your data folder with mkdir -p ./openmaptiles/data && cd openmaptiles && explorer.exe .
  5. Paste your downloaded <your-map>.osm.pbf inside that data folder
  6. Run sudo ./quickstart.sh <your-map> (You may need to enable wsl integration with your wsl distro in the docker desktop settings under Settings > Resources > WSL integration)
  7. Access the generated data under data/tiles.mbtiles

Set which zooms to generate

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

About

A simple starting setup for self-hosting OSM vector tiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages