forked from MapComplete/MapComplete
UI(basemap): add landcover on low zoom levels
This commit is contained in:
parent
a387d5d77b
commit
4d40200d47
1 changed files with 53 additions and 3 deletions
|
@ -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"
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue