Skip to content

Testing martin with MapLibre from a pbf file #1233

Answered by BigBoulard
BigBoulard asked this question in Q&A
Discussion options

You must be logged in to vote

There were several issues.

  1. The best method to test self-served tiles with Martin is to generate the tiles with Planetiler which produces a mbtiles file that Martin can use as a source to serve.
docker run -e JAVA_TOOL_OPTIONS="-Xmx1g" -v "$(pwd)/planetiler":/data ghcr.io/onthegomap/planetiler:latest --download --area=belgium

see planetiler

version: '3.8'
services:
  martin:
    image: ghcr.io/maplibre/martin:v0.13.0
    ports:
      - 3000:3000
    environment:
      - RUST_LOG=debug
    volumes:
      - ./fonts:/fonts
      - ./icons:/sprite
      - ./maps-data/belgium.mbtiles:/maps-data/belgium.mbtiles
    command: /maps-data/belgium.mbtiles --sprite /sprite --font /fonts
  1. A JSON endp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BigBoulard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant