From b9fda896f254add4801837eae2251235ee47acd4 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Tue, 10 Jan 2017 16:00:23 +0100 Subject: [PATCH] Migrate place layers --- style.json | 64 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 25 deletions(-) diff --git a/style.json b/style.json index f59cd3f..1cd2172 100644 --- a/style.json +++ b/style.json @@ -3489,19 +3489,22 @@ "paint": {} }, { - "id": "place_label_other", + "id": "place_other", "type": "symbol", "metadata": {}, "source": "openmaptiles", - "source-layer": "place_label", + "source-layer": "place", "filter": [ - "in", - "type", - "hamlet", - "island", - "islet", - "neighbourhood", - "suburb" + "all", + [ + "in", + "class", + "hamlet", + "island", + "islet", + "neighbourhood", + "suburb" + ] ], "layout": { "text-field": "{name_en}", @@ -3532,15 +3535,18 @@ } }, { - "id": "place_label_village", + "id": "place_village", "type": "symbol", "metadata": {}, "source": "openmaptiles", - "source-layer": "place_label", + "source-layer": "place", "filter": [ - "==", - "type", - "village" + "all", + [ + "==", + "class", + "village" + ] ], "layout": { "text-field": "{name_en}", @@ -3569,15 +3575,18 @@ } }, { - "id": "place_label_town", + "id": "place_town", "type": "symbol", "metadata": {}, "source": "openmaptiles", - "source-layer": "place_label", + "source-layer": "place", "filter": [ - "==", - "type", - "town" + "all", + [ + "==", + "class", + "town" + ] ], "layout": { "icon-image": { @@ -3624,16 +3633,19 @@ } }, { - "id": "place_label_city", + "id": "place_city", "type": "symbol", "metadata": {}, "source": "openmaptiles", - "source-layer": "place_label", + "source-layer": "place", "minzoom": 5, "filter": [ - "==", - "type", - "city" + "all", + [ + "==", + "class", + "city" + ] ], "layout": { "icon-image": { @@ -3671,7 +3683,9 @@ 24 ] ] - } + }, + "icon-allow-overlap": true, + "icon-optional": false }, "paint": { "text-color": "#333",