osm2pgsql
openmaptiles
Since 2020 OpenStreetMap.by runs on 64Gb RAM and 2x512 SSD server at https://www.hetzner.com and costs @Komzpa 40.80 EUR monthly.
git clone https://github.com/osm-by/OpenStreetMap.by.git
git submodule update --init --recursive
that initialize openmaptiles
install.sh
- make sure that you have all required packagesupdater/update.sh belarus
- fetch and prepare data:
osm2pgsql
updater/update.sh all
or updater/update.sh planet
.env
contains good for your configuration docker-compose up -d nginx
run nginx
and all required services locally. production: updater:
1. serve fonts/styles from disc 1. serve fonts/styles from tileserver
2. serve belarus from disk 2. serve belarus tile from tileserver
3. serve planet from martin 3. no planet tiles serve
nginx nginx
| |
--------------------------------- --------------------------
| | | | | | |
static---webapp | martin static---webapp tileserver
| | | | |
---------- ----------- ---------- |
| | | | | |
redis postgis tiledata redis postgis tiledata
| | | |
=================+===========+======== ================+==========+=====
| | | |
------------- ------------
| |
updater updater
NOTE: tileserver can be replaced with serving tile data as standard static data serving by nginx.
redis
store only untranslated text keys.
postgis
provide osm2pgsql
schema and used for read only purpose.
See details in docker-compose.yml
.
belarus-latest.osm.pbf
- osm dumpbelarus.mbtiles
- mbtiles generated for Belarus osm dump zooms 0-14planet.mbtiles
- mbtiles generated for planet overview zooms 0-14belarus/
- vector tiles for Belarus osm dump zooms 0-14 unpacked from belarus.mbtiles
data/
- vector tile data infostyles/
- styles for vector tiles renderingfonts/
- fonts used by styles for vector tiles renderingtiledata
directory fully populated with updater/update.sh
script.
Most of this data server by nginx
, see details in nginx/openstreetmap.by.conf
.
Used bright style as default with next modifications:
water-pattern
style layer.housenumer
style layer for zooms 15+ (based on basic style housenumber
layer) and expressions.As part of the styles used appropriate fonts.
See https://github.com/osm-by/openmaptiles (slightly modified fork of https://github.com/openmaptiles/openmaptiles).
git clone https://github.com/osm-by/openmaptiles.git
cd openmaptiles
python3 -m venv venv
. venv/bin/activate
pip install docker-compose
./quickstart.sh belarus
See https://github.com/maptiler/tileserver-gl.
docker run --rm -it -v $(pwd)/data:/data -p 8081:80 maptiler/tileserver-gl