Correctly label water bodies

This commit is contained in:
Lukas Martinelli 2017-01-20 17:16:01 +01:00
parent e54b6b5657
commit 6222dbd590

View File

@ -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 @@
] ]
} }
] ]
} }