UI(basemap): add landcover on low zoom levels

This commit is contained in:
Pieter Vander Vennet 2025-02-24 13:55:25 +01:00
parent 7ce2c4d730
commit 5dc6d82cd0

View file

@ -29,6 +29,47 @@
"fill-color": "#fcf7e5"
}
},
{
"id": "landcover_low_zooms",
"type": "fill",
"source": "protomaps",
"source-layer": "landcover",
"paint": {
"fill-color": [
"match",
[
"get",
"kind"
],
"grassland",
"#e5f2c9",
"barren",
"rgba(255, 243, 215, 1)",
"urban_area",
"rgba(230, 230, 230, 1)",
"farmland",
"rgba(216, 239, 210, 1)",
"glacier",
"rgba(255, 255, 255, 1)",
"scrub",
"rgba(234, 239, 210, 1)",
"#f0efdd"
],
"fill-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
5,
1,
7,
0
]
}
},
{
"id": "landuse_farmland",
"type": "fill",
@ -3221,7 +3262,10 @@
"get",
"min_zoom"
],
"text-field": "{name}",
"text-field": [
"get",
"name"
],
"text-font": [
"Noto Sans Regular"
],
@ -3357,7 +3401,10 @@
"locality"
],
"layout": {
"text-field": "{name}",
"text-field": [
"get",
"name"
],
"text-font": [
"case",
[
@ -3650,7 +3697,10 @@
"get",
"min_zoom"
],
"text-field": "{name}",
"text-field": [
"get",
"name"
],
"text-font": [
"Noto Sans Medium"
],