This project is used to serve tiles for https://tiles.openstreetmap.org.ua/
.
Tiles are available by url:
https://tiles.openstreetmap.org.ua/tile/{z}/{x}/{y}.png
Here is an example how to connect tiles to your leaflet map:
var map = L.map('map').setView([48.959, 32.311], 6);
L.tileLayer('https://tiles.openstreetmap.org.ua/tile/{z}/{x}/{y}.png', {
minZoom: 6,
maxZoom: 18,
attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright/">OpenStreetMap</a> contributors, <a href="http://opendatacommons.org/licenses/odbl/">ODbL</a>',
id: 'base'
}).addTo(map);
Usage is free, but if you expect more than 1000 clients, please,
contact [email protected]
before using this tile server.
If you want to setup this server on your own hardware, you can follow quickstart of https://github.com/Monstrofil/osm_tileserver_docker using this repository as reference.
- Clone repository to
/opt/tiles.openstreetmap.org.ua/
. - Install nginx and copy configs from
configs
directory to/etc/nginx
. - Download latest
.pbf
dump of Ukraine fromhttps://github.com/Monstrofil/tiles.openstreetmap.org.ua/releases/latest
(don't forget to untar it usingtar xvf <name>.tar.gz
). - Place downloaded and extracted
ukraine-latest-fixed-crimea.osm.pbf
file intodata
folder of this project. - Run
docker-compose pull && docker-compose build
- Run
./manage.sh import ukraine-latest-fixed-crimea.osm.pbf
in order to start postgis and import osm data into. - Run
./manage.sh run
to start webserver (works on 8082 port by default). - Run
Generated tiles are available by
http://<ip>:8082/osm/{z}/{x}/{y}.png
This project uses https://github.com/Monstrofil/osm_tileserver_docker to serve tiles, so see that project for detailed instructions.
- Run
git pull
- Run
docker-compose pull && docker-compose build
- Run
./manage.sh run
- Andrii B for creating script that prepares pbf file