From 73cba3eec2bd2c41d2f31deb2bfbd65579e64696 Mon Sep 17 00:00:00 2001 From: jirik Date: Sun, 9 Dec 2018 11:14:46 +0100 Subject: [PATCH] Add piers --- style.json | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 78 insertions(+), 3 deletions(-) diff --git a/style.json b/style.json index f882778f..f130802b 100644 --- a/style.json +++ b/style.json @@ -1581,6 +1581,73 @@ } } }, + { + "id": "road_area_pier", + "type": "fill", + "metadata": {}, + "source": "openmaptiles", + "source-layer": "transportation", + "filter": [ + "all", + [ + "==", + "$type", + "Polygon" + ], + [ + "==", + "class", + "pier" + ] + ], + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": "#f8f4f0", + "fill-antialias": true + } + }, + { + "id": "road_pier", + "type": "line", + "metadata": {}, + "source": "openmaptiles", + "source-layer": "transportation", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "in", + "class", + "pier" + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "#f8f4f0", + "line-width": { + "base": 1.2, + "stops": [ + [ + 15, + 1 + ], + [ + 17, + 4 + ] + ] + } + } + }, { "id": "highway-area", "type": "fill", @@ -1590,9 +1657,17 @@ "source": "openmaptiles", "source-layer": "transportation", "filter": [ - "==", - "$type", - "Polygon" + "all", + [ + "==", + "$type", + "Polygon" + ], + [ + "!in", + "class", + "pier" + ] ], "layout": { "visibility": "visible"