Martin Source Endpoints Differences #1238
Answered
by
nyurik
BigBoulard
asked this question in
Q&A
-
Hi Team, Context: I'm trying to display a map of Belgium using MapLibre and Martin. In the doc I can see this:
So, what's the difference between: "sources": {
"osm-tiles": {
"type": "vector",
"tiles": [
"https://mygateway:8080/planet_osm_point,planet_osm_line,planet_osm_roads,planet_osm_polygon"
],
"minzoom": 0,
"maxzoom": 22
}
}, or {
"sources": {
"osm-tiles": {
"type": "vector",
"tiles": [
"https://mygateway:8080/planet_osm_line/{z}/{x}/{y}",
"https://mygateway:8080/planet_osm_point/{z}/{x}/{y}",
"https://mygateway:8080/planet_osm_polygon/{z}/{x}/{y}",
"https://mygateway:8080/planet_osm_roads/{z}/{x}/{y}"
],
"minzoom": 0,
"maxzoom": 14
}
}, or {
"sources": {
"osm-tiles": {
"type": "vector",
"tiles": [
"https://mygateway:8080/planet_osm_line",
"https://mygateway:8080/planet_osm_point",
"https://mygateway:8080/planet_osm_polygon",
"https://mygateway:8080/planet_osm_roads"
],
"minzoom": 0,
"maxzoom": 14
}
}, Does it make a difference if Martin serves Tiles from a local |
Beta Was this translation helpful? Give feedback.
Answered by
nyurik
Mar 8, 2024
Replies: 1 comment 1 reply
-
Lots of good questions :)
P.S. you will have to use a comma-separated format if you use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BigBoulard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lots of good questions :)
"tiles": [...]
param that contains{z}/{x}/{y}
, and also configure the rest of the tile source (min/max zoom,...), OR, you can give it a link to tilejson using"url"
-- in which case it must be just a single tilesource, and you don't need to set min/max zoom, ...P.S. you will have to us…