Vector tiles service compatible with Mapbox GL js.
- docker
- docker-compose
- clone the repo
git clone [email protected]:nextmoov/nextmoov-smop-maps.git
- move into the created folder
cd nextmoov-smop-maps
- run via docker-compose
docker-compose up
The importer will acquire an osm.pbf file (defined in importer/config.js, currently set on belgium-latest.osm.pbf from Geofabrik – see General - Data for more information).
The base url of the tiles is http://localhost:8080/tiles
All kind of items are available on separated routes prfixed by the "base url" :
-
/waterways/{z}/{x}/{y}.pbf
-
/waterareas/{z}/{x}/{y}.pbf
-
/landusages/{z}/{x}/{y}.pbf
-
/aeroways/{z}/{x}/{y}.pbf
-
/transport_areas/{z}/{x}/{y}.pbf
-
/roads/{z}/{x}/{y}.pbf
-
/admin/{z}/{x}/{y}.pbf
-
/housenumbers/{z}/{x}/{y}.pbf
-
/buildings/{z}/{x}/{y}.pbf
-
/amenities/{z}/{x}/{y}.pbf
-
/places/{z}/{x}/{y}.pbf
Known issues : the server does not refresh already cached tiles.
You can clear the cache by issuing docker-compose exec maps-server /app/clear_cache
.
A Dockerfile is provided to build a compatible database service.