From 6ee2826e680f16e8ab3f9343a2dfaa1a4508991b Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Tue, 10 Jan 2017 17:40:07 +0100 Subject: [PATCH] Work on roads --- style.json | 120 +++++++++++++++++++++--------------- svgs/pedestrian_polygon.svg | 38 ++++++++++++ 2 files changed, 108 insertions(+), 50 deletions(-) create mode 100644 svgs/pedestrian_polygon.svg diff --git a/style.json b/style.json index 19530db..30ad97e 100644 --- a/style.json +++ b/style.json @@ -920,7 +920,7 @@ } }, { - "id": "tunnel_street", + "id": "tunnel_minor", "metadata": {}, "paint": { "line-color": "#fff", @@ -956,8 +956,7 @@ [ "in", "class", - "street", - "street_limited" + "minor" ] ], "layout": { @@ -1174,10 +1173,9 @@ "tunnel" ], [ - "in", + "==", "class", - "rail", - "minor_rail" + "rail" ] ] }, @@ -1422,7 +1420,7 @@ } }, { - "id": "road_street_casing", + "id": "road_minor_casing", "type": "line", "metadata": {}, "source": "openmaptiles", @@ -1445,8 +1443,7 @@ [ "in", "class", - "street", - "street_limited" + "minor" ] ] ], @@ -1834,8 +1831,8 @@ ], [ "==", - "class", - "link" + "ramp", + 1 ] ], "layout": { @@ -1845,30 +1842,15 @@ } }, { - "id": "road_street", + "id": "road_area", "metadata": {}, "paint": { - "line-color": "#fff", - "line-opacity": 1, - "line-width": { - "base": 1.2, - "stops": [ - [ - 13.5, - 0 - ], - [ - 14, - 2.5 - ], - [ - 20, - 18 - ] - ] - } + "fill-color": "rgba(0,0,0, 1)", + "fill-antialias": false, + "fill-outline-color": "rgba(69, 6, 6, 1)", + "fill-pattern": "airfield_11" }, - "type": "line", + "type": "fill", "source": "openmaptiles", "source-layer": "transportation", "filter": [ @@ -1876,27 +1858,11 @@ [ "==", "$type", - "LineString" - ], - [ - "all", - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "in", - "class", - "street", - "street_limited" - ] + "Polygon" ] ], "layout": { - "line-cap": "round", - "line-join": "round" + "visibility": "visible" } }, { @@ -2138,6 +2104,60 @@ ] ] }, + { + "id": "road_minor-copy", + "metadata": {}, + "paint": { + "line-color": "#fff", + "line-opacity": 1, + "line-width": { + "base": 1.2, + "stops": [ + [ + 13.5, + 0 + ], + [ + 14, + 2.5 + ], + [ + 20, + 18 + ] + ] + } + }, + "type": "line", + "source": "openmaptiles", + "source-layer": "transportation", + "filter": [ + "all", + [ + "==", + "$type", + "LineString" + ], + [ + "all", + [ + "!in", + "brunnel", + "bridge", + "tunnel" + ], + [ + "in", + "class", + "minor" + ] + ] + ], + "layout": { + "line-cap": "round", + "line-join": "round" + } + }, { "id": "bridge_motorway_link_casing", "type": "line", diff --git a/svgs/pedestrian_polygon.svg b/svgs/pedestrian_polygon.svg new file mode 100644 index 0000000..16d599f --- /dev/null +++ b/svgs/pedestrian_polygon.svg @@ -0,0 +1,38 @@ + + pedestrian-polygon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +