Correctly label water bodies
This commit is contained in:
parent
e54b6b5657
commit
6222dbd590
41
style.json
41
style.json
@ -3086,18 +3086,48 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "water_label",
|
"id": "water_name_line",
|
||||||
"type": "symbol",
|
"type": "symbol",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": "openmaptiles",
|
"source": "openmaptiles",
|
||||||
"source-layer": "water_label",
|
"source-layer": "water_name",
|
||||||
|
"filter": [
|
||||||
|
"all",
|
||||||
|
[
|
||||||
|
"==",
|
||||||
|
"$type",
|
||||||
|
"LineString"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"layout": {
|
||||||
|
"text-field": "{name}",
|
||||||
|
"text-font": [
|
||||||
|
"Roboto Regular"
|
||||||
|
],
|
||||||
|
"text-max-width": 5,
|
||||||
|
"text-size": 12,
|
||||||
|
"symbol-placement": "line"
|
||||||
|
},
|
||||||
|
"paint": {
|
||||||
|
"text-color": "#5d60be",
|
||||||
|
"text-halo-color": "rgba(255,255,255,0.7)",
|
||||||
|
"text-halo-width": 1
|
||||||
|
},
|
||||||
|
"minzoom": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "water_name_point",
|
||||||
|
"type": "symbol",
|
||||||
|
"metadata": {},
|
||||||
|
"source": "openmaptiles",
|
||||||
|
"source-layer": "water_name",
|
||||||
"filter": [
|
"filter": [
|
||||||
"==",
|
"==",
|
||||||
"$type",
|
"$type",
|
||||||
"Point"
|
"Point"
|
||||||
],
|
],
|
||||||
"layout": {
|
"layout": {
|
||||||
"text-field": "{name_en}",
|
"text-field": "{name}",
|
||||||
"text-font": [
|
"text-font": [
|
||||||
"Roboto Regular"
|
"Roboto Regular"
|
||||||
],
|
],
|
||||||
@ -3108,7 +3138,8 @@
|
|||||||
"text-color": "#5d60be",
|
"text-color": "#5d60be",
|
||||||
"text-halo-color": "rgba(255,255,255,0.7)",
|
"text-halo-color": "rgba(255,255,255,0.7)",
|
||||||
"text-halo-width": 1
|
"text-halo-width": 1
|
||||||
}
|
},
|
||||||
|
"minzoom": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "poi_z17",
|
"id": "poi_z17",
|
||||||
@ -3832,4 +3863,4 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user