OpenMapTiles is an extensible and open tile schema based on the OpenStreetMap.
 
 
 
Go to file
lukasmartinelli 263d7e8a96 Add docs for landcover, landuse and housenumber 2016-10-30 16:07:47 +01:00
layers Add docs for landcover, landuse and housenumber 2016-10-30 16:07:47 +01:00
.env Switch to Makefile and openmaptiles-tools 2016-10-23 17:36:48 +02:00
.gitignore Add gitignore 2016-10-06 19:35:00 +02:00
Makefile Add docs for landcover, landuse and housenumber 2016-10-30 16:07:47 +01:00
README.md Remove OSM2VT stuff from README 2016-10-28 16:54:42 +02:00
basemap_vision.png Add vision to README 2016-10-06 07:35:10 +02:00
docker-compose.yml Add water name layer 2016-10-28 16:11:38 +02:00
mapbox_studio_classic.gif Add studio explain gif 2016-10-06 07:49:00 +02:00
openmaptiles.yaml Basic poi layer 2016-10-28 17:46:10 +02:00

README.md

OpenMapTiles

OpenMapTiles is a collection of vector tile layers you can mix and match to create your own vector tile sets.

Define your own Layer

Define your own Tileset

Work on the Standard Layers

To work on osm2vectortiles.tm2source you need Docker and Python.

Build

Build the tileset.

# 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

Prepare the Database

Now start up the database container.

docker-compose up -d postgres`

Import water from OpenStreetMapData.

docker-compose run import-water

Import Natural Earth data.

docker-compose run import-natural-earth

Import Lake center line data.

docker-compose run import-lakelines

Import OpenStreetMap data based on the ClearTables osm2pgsql style. In order to do this you first need to clone the latest ClearTables.

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

To look at the vector tiles you can start up Mapbox Studio Classic in a container and visit localhost:3000 and open the vector source project under /projects.

docker-compose up mapbox-studio

Develop on OSM2VectorTiles with Mapbox Studio Classic

License

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