Search code examples
dockermapboxopenstreetmapvector-tiles

Is it possible to use Openstreetmaps tile server to serve tiles to mapbox gl with a docker image


is it possible to serve tiles to a mapbox instance using a openstreetmap-tile-server docker image.

This link is a link to set up the server (https://switch2osm.org/serving-tiles/using-a-docker-container/).

The example it provides is a map produced on leaflet but I was wondering if there was a way to modify it so it would use mapbox instead? the server has produced xyz formatted png files


Solution

  • If I understand correctly, you want to use the tile server hosted on your docker container.

    In that case, this example would work.