Skip to content

Issue with Maplibre URL-encoding #2706

Answered by louwers
Z3vron asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend using a vector-tile source with MapLibre Native.

But if you are set on using mapy.cz, you can also use their TileJSON endpoint. Try setting this as style:

{
  "version": 8,
  "name": "Empty Style",
  "metadata": {"maputnik:renderer": "mlgljs"},
  "sources": {
    "mapy": {
      "type": "raster",
      "url": "https://api.mapy.cz/v1/maptiles/outdoor/tiles.json?apikey=your_api_key"
    }
  },
  "sprite": "",
  "glyphs": "https://orangemug.github.io/font-glyphs/glyphs/{fontstack}/{range}.pbf",
  "layers": [{"id": "", "type": "raster", "source": "mapy"}],
  "id": "srots50"
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Z3vron
Comment options

Answer selected by Z3vron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants