From 52c1151bcb86836a300a5989c92baa78002690ab Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Sat, 7 Mar 2020 11:05:37 -0700 Subject: [PATCH] Add ca-transcanada shields to style --- style.json | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/style.json b/style.json index 46363cc..6e200ad 100644 --- a/style.json +++ b/style.json @@ -1553,6 +1553,31 @@ }, "paint": {"text-color": "#000"} }, + { + "id": "road_shield_ca-transcanada-2", + "type": "symbol", + "source": "openmaptiles", + "source-layer": "transportation_name", + "minzoom": 7, + "filter": [ + "all", + ["<=", "ref_length", 2], + ["in", "network", "ca-transcanada"] + ], + "layout": { + "icon-image": "{network}_2", + "icon-rotation-alignment": "viewport", + "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]}, + "symbol-spacing": 500, + "text-field": "{ref}", + "text-font": ["Roboto Regular"], + "text-offset": [0, 0.2], + "text-rotation-alignment": "viewport", + "text-size": 10, + "icon-size": 0.8 + }, + "paint": {"text-color": "#000"} + }, { "id": "road_shield", "type": "symbol", @@ -1562,7 +1587,7 @@ "filter": [ "all", ["<=", "ref_length", 6], - ["!in", "network", "us-interstate", "us-highway"] + ["!in", "network", "us-interstate", "us-highway", "ca-transcanada"] ], "layout": { "icon-image": "default_{ref_length}",