Skip to content

Latest commit

 

History

History

tiles-omt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OMT Tiles

Contains OpenMapTiles in the N047E011 region. These tiles are made to be used with our omt demo page, which centers around Innsbruck Austria [11.40416, 47.26475]

How to use the demo OMT Tiles

1.) Include the omt vector tiles in your maps list of sources.

"openmaptiles":{
	"type":"vector",
	"url":"https://demotiles.maplibre.org/tiles-omt/tiles.json"
}

2.) Use the "openmaptiles" source in your style.

OMT Tile Generation

1.) Create OMT mbtiles using you favorite tool. In this example I use planetiler.

java -Xmx45g -XX:OnOutOfMemoryError="kill -9 %p" -jar planetiler.jar --download --area=europe --fetch-wikidata --bounds=11,47,12,48 --mbtiles=N047E011.mbtiles 

2.) Extract the mbtiles file to flat file xyz format

./mb-util --image_format=pbf N047E011.mbtiles N047E011

3.) Uncompress the pbf files so they can be used with github pages.

cd N047E011
gzip -d -r -S .pbf *
find . -type f -exec mv '{}' '{}'.pbf \;

4.) The tiles.json file was generated by running tileserver-gl with the N047E011.mbtiles file as an input.

Data Source

OpenMapTiles - https://openmaptiles.org/schema/

OpenStreetMap - https://www.openstreetmap.org/copyright