Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(style): Add aerial style config and allow swap-able TileMatrix in the source urls. #916

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
25 changes: 25 additions & 0 deletions config/style/aerial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"id": "st_aerial",
"layers": [
{
"id": "Aerial-Imagery",
"source": "LINZ Basemaps",
Wentao-Kuang marked this conversation as resolved.
Show resolved Hide resolved
"type": "raster"
}
],
"name": "aerial",
"sources": {
"LINZ-Basemaps": {
"tileSize": 256,
"tiles": ["/v1/tiles/aerial/{tileMatrix}/{z}/{x}/{y}.webp"],
"type": "raster"
},
"LINZ-Terrain": {
"maxzoom": 18,
"tileSize": 256,
"tiles": ["/v1/tiles/elevation/{tileMatrix}/{z}/{x}/{y}.png?pipeline=terrain-rgb"],
"type": "raster-dem"
}
},
"version": 8
}
4 changes: 2 additions & 2 deletions config/style/aerialhybrid.json
Original file line number Diff line number Diff line change
Expand Up @@ -1395,12 +1395,12 @@
},
"name": "aerialhybrid",
"sources": {
"LINZ Basemaps": { "attribution": "© 2022 Toitū Te Whenua - CC BY 4.0", "type": "vector", "url": "/v1/tiles/topographic/EPSG:3857/tile.json" },
"LINZ Basemaps": { "attribution": "© 2024 Toitū Te Whenua - CC BY 4.0", "type": "vector", "url": "/v1/tiles/topographic/{tileMatrix}/tile.json" },
"LINZ-Imagery": {
"maxzoom": 28,
"minzoom": 0,
"tileSize": 256,
"tiles": ["/v1/tiles/aerial/EPSG:3857/{z}/{x}/{y}.webp"],
"tiles": ["/v1/tiles/aerial/{tileMatrix}/{z}/{x}/{y}.webp"],
"type": "raster"
}
},
Expand Down
2 changes: 1 addition & 1 deletion config/style/basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@
"openmaptiles": {
"attribution": "© 2022 Toitū Te Whenua © OpenMapTiles - CC BY 4.0",
"type": "vector",
"url": "/v1/tiles/topographic/EPSG:3857/tile.json"
"url": "/v1/tiles/topographic/{tileMatrix}/tile.json"
}
},
"sprite": "",
Expand Down
2 changes: 1 addition & 1 deletion config/style/positron.json
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@
"LINZ Basemaps": {
"attribution": "© 2022 Toitū Te Whenua © OpenMapTiles - CC BY 4.0",
"type": "vector",
"url": "/v1/tiles/topographic/EPSG:3857/tile.json"
"url": "/v1/tiles/topographic/{tileMatrix}/tile.json"
}
},
"sprite": "/v1/sprites/topographic",
Expand Down
4 changes: 2 additions & 2 deletions config/style/topographic.json
Original file line number Diff line number Diff line change
Expand Up @@ -5504,8 +5504,8 @@
"metadata": { "maputnik:renderer": "mbgljs" },
"name": "topographic",
"sources": {
"LINZ Basemaps": { "attribution": "© 2022 Toitū Te Whenua - CC BY 4.0", "type": "vector", "url": "/v1/tiles/topographic/EPSG:3857/tile.json" },
"LINZ-Texture-Relief": { "maxzoom": 20, "minzoom": 0, "tileSize": 256, "tiles": ["/v1/tiles/texturereliefshade/EPSG:3857/{z}/{x}/{y}.webp"], "type": "raster" }
"LINZ Basemaps": { "attribution": "© 2024 Toitū Te Whenua - CC BY 4.0", "type": "vector", "url": "/v1/tiles/topographic/{tileMatrix}/tile.json" },
"LINZ-Texture-Relief": { "maxzoom": 20, "minzoom": 0, "tileSize": 256, "tiles": ["/v1/tiles/texturereliefshade/{tileMatrix}/{z}/{x}/{y}.webp"], "type": "raster" }
},
"sprite": "/v1/sprites/topographic",
"version": 8
Expand Down
4 changes: 2 additions & 2 deletions config/style/topolite.json
Original file line number Diff line number Diff line change
Expand Up @@ -2420,8 +2420,8 @@
"metadata": { "maputnik:renderer": "mbgljs" },
"name": "topolite",
"sources": {
"LINZ Basemaps": { "attribution": "© 2022 Toitū Te Whenua - CC BY 4.0", "type": "vector", "url": "/v1/tiles/topographic/EPSG:3857/tile.json" },
"LINZ-Texture-Relief": { "maxzoom": 20, "minzoom": 0, "tileSize": 256, "tiles": ["/v1/tiles/texturereliefshade/EPSG:3857/{z}/{x}/{y}.webp"], "type": "raster" }
"LINZ Basemaps": { "attribution": "© 2024 Toitū Te Whenua - CC BY 4.0", "type": "vector", "url": "/v1/tiles/topographic/{tileMatrix}/tile.json" },
"LINZ-Texture-Relief": { "maxzoom": 20, "minzoom": 0, "tileSize": 256, "tiles": ["/v1/tiles/texturereliefshade/{tileMatrix}/{z}/{x}/{y}.webp"], "type": "raster" }
},
"sprite": "/v1/sprites/topographic",
"version": 8
Expand Down
Loading