OpenMapTiles is an extensible and open tile schema based on the OpenStreetMap.
 
 
 
Go to file
OpenMapTiles 88183e6143 Create LICENSE.md 2017-01-07 15:10:07 +01:00
layers Add better title to layer READMEs 2017-01-05 17:31:21 +01:00
qa refactor to the new generate-sqlquery 2016-12-15 12:59:59 +01:00
.env add DIFF_MODE=false 2016-12-15 13:05:07 +01:00
.gitignore remove some refactored files 2016-11-30 05:40:08 +01:00
.travis.yml set docker=1.10 docker-compose=1.7.1 2016-11-27 19:01:41 +01:00
BENCHMARKING.md Create BENCHMARKING.md 2016-12-31 10:00:49 -05:00
LICENSE.md Create LICENSE.md 2017-01-07 15:10:07 +01:00
Makefile fix make masking 2016-12-15 15:39:01 +01:00
QUICKSTART.md 🚀 small fixes 2016-12-09 17:07:02 +01:00
README.md Mention quickstart in README 2017-01-06 13:41:13 +01:00
docker-compose.yml Fix compose data volume 2017-01-06 13:41:13 +01:00
openmaptiles.yaml Set version to v3.3 2016-12-09 11:39:27 +01:00
quickstart.sh Improve quickstart wording 2017-01-06 13:41:13 +01:00

README.md

OpenMapTiles

OpenMapTiles is an extensible and open vector tile schema for a OpenStreetMap basemap. It is used to generate vector tiles for openmaptiles.org and openmaptiles.com.

We encourage you to collaborate, reuse and adapt existing layers and add your own layers or use our approach for your own vector tile project. The repository is built on top of the openmaptiles/tools to simplify vector tile creation.

Styles

You can start from several GL styles supporting the OpenMapTiles vector schema.

🔗 Learn how to create Mapbox GL styles with Maputnik and OpenMapTiles.

We also ported over our favorite old raster styles (TM2).

🔗 Learn how to create TM2 styles with Mapbox Studio Classic and OpenMapTiles.

Schema

OpenMapTiles consists out of a collection of documented and self contained layers you can modify and adapt. Together the layers make up the OpenMapTiles tileset.

🔗 Study the vector tile schema

Develop

To work on OpenMapTiles you need Docker and Python.

Build

Build the tileset.

git clone git@github.com:openmaptiles/openmaptiles.git
cd openmaptiles
# Build the imposm mapping, the tm2source project and collect all SQL scripts
make
# You can also run the build process inside a Docker container
docker run -v $(pwd):/tileset openmaptiles/openmaptiles-tools make

You can execute the following manual steps (for better understanding) or use the provided quickstart.sh script.

./quickstart.sh

Prepare the Database

Now start up the database container.

docker-compose up -d postgres

Import external data from OpenStreetMapData, Natural Earth and OpenStreetMap Lake Labels.

docker-compose run import-water
docker-compose run import-natural-earth
docker-compose run import-lakelines

Import OpenStreetMap data with the mapping rules from build/mapping.yaml (which has been created by make).

docker-compose run import-osm

Work on Layers

Each time you modify layer SQL code run make and docker-compose run import-sql.

make clean && make && docker-compose run import-sql

Now you are ready to generate the vector tiles using a single process (for a full blown distributed workflow of rendering tiles check out openmaptiles/distributed). Using environment variables you can limit the bounding box and zoom levels of what you want to generate (docker-compose.yml).

docker-compose run generate-vectortiles

License

LICENSE HAS NOT BEEN YET DECIDED

All code in this repository is under the MIT license and the cartography decisions encoded in the schema and SQL is licensed under CC0.