From afd6e36bf4ace654883b0caab78c5befc050e142 Mon Sep 17 00:00:00 2001 From: jirik Date: Sun, 9 Dec 2018 11:08:04 +0100 Subject: [PATCH] Add park labels --- style.json | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/style.json b/style.json index 91348e8c..b80f6a9f 100644 --- a/style.json +++ b/style.json @@ -3823,6 +3823,59 @@ "text-opacity": 1 } }, + { + "id": "park-label", + "type": "symbol", + "metadata": { + "mapbox:group": "1444849242106.713" + }, + "source": "openmaptiles", + "source-layer": "park", + "filter": [ + "all", + [ + "==", + "rank", + 1 + ], + [ + "==", + "$type", + "Point" + ] + ], + "layout": { + "text-letter-spacing": 0.1, + "text-size": { + "base": 1.2, + "stops": [ + [ + 12, + 10 + ], + [ + 15, + 14 + ] + ] + }, + "text-font": [ + "Noto Sans Regular" + ], + "text-field": "{name:latin}\n{name:nonlatin}", + "text-transform": "none", + "text-max-width": 9, + "visibility": "visible", + "text-allow-overlap": false, + "text-ignore-placement": false + }, + "paint": { + "text-color": "rgba(74, 110, 56, 1)", + "text-halo-width": 1.2, + "text-halo-color": "rgba(255,255,255,0.8)" + }, + "minzoom": 0 + }, { "id": "place-other", "type": "symbol",