diff --git a/ui/src/assets/b612-mono/b612-mono.css b/ui/src/assets/b612-mono/b612-mono.css index aadb21b1..02c9cd73 100644 --- a/ui/src/assets/b612-mono/b612-mono.css +++ b/ui/src/assets/b612-mono/b612-mono.css @@ -1,33 +1,44 @@ /* b612-mono-bold-italic */ @font-face { - font-family: B612 Mono; - font-style: italic; - font-weight: 700; - src: local("B612 Mono Bold Italic"), local("B612Mono-BoldItalic"), url(b612-mono-bold-italic.woff2) format("woff2"); - font-display: auto; + font-family: B612 Mono; + font-style: italic; + font-weight: 700; + src: + local("B612 Mono Bold Italic"), + local("B612Mono-BoldItalic"), + url(b612-mono-bold-italic.woff2) format("woff2"); + font-display: auto; } /* b612-mono-bold */ @font-face { - font-family: B612 Mono; - font-style: normal; - font-weight: 700; - src: local("B612 Mono Bold"), local("B612Mono-Bold"), url(b612-mono-bold.woff2) format("woff2"); - font-display: auto; + font-family: B612 Mono; + font-style: normal; + font-weight: 700; + src: + local("B612 Mono Bold"), + local("B612Mono-Bold"), + url(b612-mono-bold.woff2) format("woff2"); + font-display: auto; } /* b612-mono-regular */ @font-face { - font-family: B612 Mono; - font-style: normal; - font-weight: 400; - src: local("B612 Mono Regular"), local("B612Mono-Regular"), url(b612-mono-regular.woff2) format("woff2"); - font-display: auto; + font-family: B612 Mono; + font-style: normal; + font-weight: 400; + src: + local("B612 Mono Regular"), + local("B612Mono-Regular"), + url(b612-mono-regular.woff2) format("woff2"); + font-display: auto; } /* b612-mono-italic */ @font-face { - font-family: B612 Mono; - font-style: italic; - font-weight: 400; - src: local("B612 Mono Italic"), local("B612Mono-Italic"), url(b612-mono-italic.woff2) format("woff2"); - font-display: auto; + font-family: B612 Mono; + font-style: italic; + font-weight: 400; + src: + local("B612 Mono Italic"), + local("B612Mono-Italic"), + url(b612-mono-italic.woff2) format("woff2"); + font-display: auto; } - diff --git a/ui/src/assets/b612/b612.css b/ui/src/assets/b612/b612.css index 1669ae6c..386588cb 100644 --- a/ui/src/assets/b612/b612.css +++ b/ui/src/assets/b612/b612.css @@ -1,33 +1,44 @@ /* b612-italic */ @font-face { - font-family: B612; - font-style: italic; - font-weight: 400; - src: local("B612 Italic"), local("B612-Italic"), url(b612-italic.woff2) format("woff2"); - font-display: auto; + font-family: B612; + font-style: italic; + font-weight: 400; + src: + local("B612 Italic"), + local("B612-Italic"), + url(b612-italic.woff2) format("woff2"); + font-display: auto; } /* b612-regular */ @font-face { - font-family: B612; - font-style: normal; - font-weight: 400; - src: local("B612 Regular"), local("B612-Regular"), url(b612-regular.woff2) format("woff2"); - font-display: auto; + font-family: B612; + font-style: normal; + font-weight: 400; + src: + local("B612 Regular"), + local("B612-Regular"), + url(b612-regular.woff2) format("woff2"); + font-display: auto; } /* b612-bold-italic */ @font-face { - font-family: B612; - font-style: italic; - font-weight: 700; - src: local("B612 Bold Italic"), local("B612-BoldItalic"), url(b612-bold-italic.woff2) format("woff2"); - font-display: auto; + font-family: B612; + font-style: italic; + font-weight: 700; + src: + local("B612 Bold Italic"), + local("B612-BoldItalic"), + url(b612-bold-italic.woff2) format("woff2"); + font-display: auto; } /* b612-bold */ @font-face { - font-family: B612; - font-style: normal; - font-weight: 700; - src: local("B612 Bold"), local("B612-Bold"), url(b612-bold.woff2) format("woff2"); - font-display: auto; + font-family: B612; + font-style: normal; + font-weight: 700; + src: + local("B612 Bold"), + local("B612-Bold"), + url(b612-bold.woff2) format("woff2"); + font-display: auto; } - diff --git a/ui/src/assets/map/styles/ch.swisstopo.leichte-basiskarte-imagery.vt.json b/ui/src/assets/map/styles/ch.swisstopo.leichte-basiskarte-imagery.vt.json index 514c1950..b62e7e86 100644 --- a/ui/src/assets/map/styles/ch.swisstopo.leichte-basiskarte-imagery.vt.json +++ b/ui/src/assets/map/styles/ch.swisstopo.leichte-basiskarte-imagery.vt.json @@ -1,7045 +1,2857 @@ { - "version": 8, - "id": "0b8f7418-1dcb-48a2-aff6-57e2a9439ffc", - "name": "imagerybasemap_v1.15.0", - "sources": { - "base_v1.0.0": { - "url": "https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.base.vt/v1.0.0/tiles.json", - "type": "vector" + "version": 8, + "id": "0b8f7418-1dcb-48a2-aff6-57e2a9439ffc", + "name": "imagerybasemap_v1.15.0", + "sources": { + "base_v1.0.0": { + "url": "https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.base.vt/v1.0.0/tiles.json", + "type": "vector" + }, + "swissimage_wmts": { + "type": "raster", + "tiles": ["https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/{z}/{x}/{y}.jpeg"], + "minzoom": 0, + "maxzoom": 22, + "tileSize": 256 + } + }, + "layers": [ + { + "id": "background", + "type": "background", + "layout": { + "visibility": "visible" + }, + "paint": { + "background-color": "rgba(187, 187, 187, 1)" + } + }, + { + "id": "swissimage", + "type": "raster", + "source": "swissimage_wmts" + }, + { + "id": "water_line", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "waterway", + "minzoom": 9.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0, + "line-color": "rgb(0, 103, 208)", + "line-width": [ + "interpolate", + ["exponential", 1.5], + ["zoom"], + 9, + 0, + 10, + 1, + 14, + [ + "match", + ["to-string", ["get", "width"]], + ["10", "9", "8"], + 4.5, + ["7", "6", "5"], + 3.5, + ["4", "3"], + 2.5, + ["1", "2"], + 2, + ["match", ["get", "class"], ["river", "canal"], 4.5, 2] + ], + 16, + [ + "match", + ["to-string", ["get", "width"]], + "10", + 6, + "9", + 5.5, + "8", + 5, + "7", + 4.5, + ["6", "5"], + 4, + "4", + 3.5, + "3", + 3, + "2", + 2.5, + "1", + 2, + ["match", ["get", "class"], ["river", "canal"], 6, 2.5] + ], + 20, + [ + "match", + ["to-string", ["get", "width"]], + "10", + 10, + "9", + 9.6, + "8", + 8.9, + "7", + 8.2, + "6", + 7.5, + "5", + 6.8, + "4", + 6.1, + "3", + 5.4, + "2", + 4.7, + "1", + 4, + ["match", ["get", "class"], ["river", "canal"], 10, 4] + ] + ], + "line-offset": 0, + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 13, + 0.3, + 15, + ["match", ["get", "class"], "river", 0.1, 0.3] + ] + }, + "filter": [ + "all", + ["!=", "intermittent", 1], + ["!in", "class", "riverbank", "shoreline", "shoreline_changing_level"] + ] + }, + { + "id": "park", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "park", + "minzoom": 7.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-color": "rgba(112, 180, 70, 1)", + "line-width": ["interpolate", ["linear"], ["zoom"], 9, 3, 13, 3, 18, 8], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 7, 0, 8, 0.4] + }, + "filter": ["all", ["in", "class", "national_park"]] + }, + { + "id": "boundary_disputed", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "boundary", + "minzoom": 0.0, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": 1, + "line-color": "hsl(318,65%,45%)", + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 2, + ["match", ["get", "admin_level"], 2, 1, 0], + 3, + ["match", ["get", "admin_level"], 2, 2, 1], + 7, + ["match", ["get", "admin_level"], 2, 4, 1.5], + 18, + ["match", ["get", "admin_level"], 2, 16, 7] + ], + "line-opacity": 0.4, + "line-dasharray": [1.5, 2.5] + }, + "filter": [ + "all", + ["in", "admin_level", 2, 4], + ["!=", "maritime", 1], + ["==", "disputed", 1], + ["==", "$type", "LineString"] + ] + }, + { + "id": "boundary", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "boundary", + "minzoom": 0.0, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": 1, + "line-color": "hsl(318,65%,45%)", + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + ["match", ["get", "admin_level"], 2, 4, 0], + 9, + ["match", ["get", "admin_level"], 2, 5, 3], + 18, + ["match", ["get", "admin_level"], 2, 16, 7] + ], + "line-opacity": 0.4 + }, + "filter": [ + "all", + ["in", "admin_level", 2, 4], + ["!=", "maritime", 1], + ["!=", "disputed", 1], + ["==", "$type", "LineString"] + ] + }, + { + "id": "tunnel_public_transport", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 8.0, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], + 0.6 + ], + 0.6 + ], + 14, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], + 0.6 + ], + 0.6 + ], + 18, + 0.4 + ], + "line-color": { + "stops": [ + [12, "rgba(170, 170, 170, 1)"], + [15, "rgba(170, 170, 170, 1)"] + ] }, - "swissimage_wmts": { - "type": "raster", - "tiles": [ - "https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/{z}/{x}/{y}.jpeg" + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 9, + ["match", ["get", "subclass"], "rail", 0.75, 0], + 10, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 0.75], + 0.5 ], - "minzoom": 0, - "maxzoom": 22, - "tileSize": 256 - } + ["match", ["get", "subclass"], ["cable_car", "funicular"], 0.75, 0.5] + ], + 14, + [ + "match", + ["get", "class"], + "transit", + 1, + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 2], + 1 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 1, 0] + ], + 18, + ["match", ["get", "class"], ["transit"], 1.5, ["match", ["get", "service"], ["yard", "siding"], 1.5, 2]] + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 9, + 0, + 10, + ["match", ["get", "service"], ["siding"], 0, 1], + 12, + ["match", ["get", "service"], ["siding"], 0, 1], + 13, + ["match", ["get", "service"], ["siding"], 0, 1], + 16, + 0.5 + ], + "line-dasharray": [8, 4] + }, + "filter": [ + "all", + ["==", "brunnel", "tunnel"], + ["in", "class", "rail", "transit", "cable_car", "gondola"], + ["==", "$type", "LineString"] + ] }, - "layers": [ - { - "id": "background", - "type": "background", - "layout": { - "visibility": "visible" - }, - "paint": { - "background-color": "rgba(187, 187, 187, 1)" - } - }, - { - "id": "swissimage", - "type": "raster", - "source": "swissimage_wmts" - }, - { - "id": "water_line", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "waterway", - "minzoom": 9.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0, - "line-color": "rgb(0, 103, 208)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 9, - 0, - 10, - 1, - 14, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - [ - "10", - "9", - "8" - ], - 4.5, - [ - "7", - "6", - "5" - ], - 3.5, - [ - "4", - "3" - ], - 2.5, - [ - "1", - "2" - ], - 2, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 4.5, - 2 - ] - ], - 16, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - "10", - 6, - "9", - 5.5, - "8", - 5, - "7", - 4.5, - [ - "6", - "5" - ], - 4, - "4", - 3.5, - "3", - 3, - "2", - 2.5, - "1", - 2, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 6, - 2.5 - ] - ], - 20, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - "10", - 10, - "9", - 9.6, - "8", - 8.9, - "7", - 8.2, - "6", - 7.5, - "5", - 6.8, - "4", - 6.1, - "3", - 5.4, - "2", - 4.7, - "1", - 4, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 10, - 4 - ] - ] - ], - "line-offset": 0, - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - 0.3, - 15, - [ - "match", - [ - "get", - "class" - ], - "river", - 0.1, - 0.3 - ] - ] - }, - "filter": [ - "all", - [ - "!=", - "intermittent", - 1 - ], - [ - "!in", - "class", - "riverbank", - "shoreline", - "shoreline_changing_level" - ] - ] - }, - { - "id": "park", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "park", - "minzoom": 7.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-color": "rgba(112, 180, 70, 1)", - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - 3, - 13, - 3, - 18, - 8 - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, - 0, - 8, - 0.4 - ] - }, - "filter": [ - "all", - [ - "in", - "class", - "national_park" - ] - ] - }, - { - "id": "boundary_disputed", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "boundary", - "minzoom": 0.0, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 1, - "line-color": "hsl(318,65%,45%)", - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 2, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 1, - 0 - ], - 3, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 2, - 1 - ], - 7, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 4, - 1.5 - ], - 18, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 16, - 7 - ] - ], - "line-opacity": 0.4, - "line-dasharray": [ - 1.5, - 2.5 - ] - }, - "filter": [ - "all", - [ - "in", - "admin_level", - 2, - 4 - ], - [ - "!=", - "maritime", - 1 - ], - [ - "==", - "disputed", - 1 - ], - [ - "==", - "$type", - "LineString" - ] - ] - }, - { - "id": "boundary", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "boundary", - "minzoom": 0.0, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 1, - "line-color": "hsl(318,65%,45%)", - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 4, - 0 - ], - 9, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 5, - 3 - ], - 18, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 16, - 7 - ] - ], - "line-opacity": 0.4 - }, - "filter": [ - "all", - [ - "in", - "admin_level", - 2, - 4 - ], - [ - "!=", - "maritime", - 1 - ], - [ - "!=", - "disputed", - 1 - ], - [ - "==", - "$type", - "LineString" - ] - ] - }, - { - "id": "tunnel_public_transport", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 8.0, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 18, - 0.4 - ], - "line-color": { - "stops": [ - [ - 12, - "rgba(170, 170, 170, 1)" - ], - [ - 15, - "rgba(170, 170, 170, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "subclass" - ], - "rail", - 0.75, - 0 - ], - 10, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 0.75 - ], - 0.5 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 0.75, - 0.5 - ] - ], - 14, - [ - "match", - [ - "get", - "class" - ], - "transit", - 1, - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 2 - ], - 1 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 1, - 0 - ] - ], - 18, - [ - "match", - [ - "get", - "class" - ], - [ - "transit" - ], - 1.5, - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 1.5, - 2 - ] - ] - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - 0, - 10, - [ - "match", - [ - "get", - "service" - ], - [ - "siding" - ], - 0, - 1 - ], - 12, - [ - "match", - [ - "get", - "service" - ], - [ - "siding" - ], - 0, - 1 - ], - 13, - [ - "match", - [ - "get", - "service" - ], - [ - "siding" - ], - 0, - 1 - ], - 16, - 0.5 - ], - "line-dasharray": [ - 8, - 4 - ] - }, - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "rail", - "transit", - "cable_car", - "gondola" - ], - [ - "==", - "$type", - "LineString" - ] - ] - }, - { - "id": "tunnel_road", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 8.0, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, - [ - "literal", - 3 - ], - 8, - [ - "literal", - 1 - ], - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk", - "primary" - ], - 0.4, - 3 - ], - 10, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk", - "primary", - "secondary" - ], - 0.4, - 3 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk", - "primary", - "secondary" - ], - 0.4, - 3 - ], - 12, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk", - "primary", - "secondary", - "tertiary" - ], - 0.4, - 3 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk", - "primary", - "secondary", - "tertiary" - ], - 0.4, - [ - "minor" - ], - 1, - 3 - ], - 15, - 0.4 - ], - "line-color": "rgba(255,255,255, 1)", - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - 1, - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1, - 0 - ] - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 1.2, - [ - "primary", - "secondary", - "tertiary", - "minor" - ], - 1, - 0 - ], - 0 - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 1.3, - [ - "primary", - "secondary", - "tertiary", - "minor" - ], - 1, - 0 - ], - 0.25 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 1.5, - [ - "primary", - "secondary", - "tertiary", - "minor" - ], - 1, - 0 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 2, - [ - "primary", - "secondary", - "tertiary", - "minor" - ], - 1.5, - 0 - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 3, - 2 - ], - 20, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 5, - 2.5 - ] - ], - "line-offset": 0, - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0, - 9, - [ - "match", - [ - "get", - "oneway" - ], - 2, - 0, - 0.4 - ], - 10, - 0.6, - 15, - 0.35, - 16, - 0.25 - ], - "line-dasharray": [ - 6, - 3 - ] - }, - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "!in", - "class", - "rail", - "ferry", - "car_ferry", - "transit", - "cable_car", - "chair_lift", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "path", - "footway", - "trail", - "rail", - "track", - "transit", - "via_ferrata", - "mask_terrain" - ], - [ - "==", - "$type", - "LineString" - ] - ] - }, - { - "id": "tunnel_road_path_footway", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 6.0, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(255,255,255, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 13, - 1, - 14, - 2, - 20, - 5 - ], - "line-offset": 0, - "line-opacity": { - "stops": [ - [ - 15, - 0.4 - ], - [ - 16, - 0.3 - ] - ] - }, - "line-dasharray": [ - 1, - 2 - ] - }, - "metadata": { - "maputnik:comment": "casing color for motorway is brown" - }, - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "path", - "footway" - ], - [ - "==", - "$type", - "LineString" - ] - ] - }, - { - "id": "road_via_ferrata", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 14.0, - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [ - 15, - 0.1 - ], - [ - 20, - 0.4 - ] - ] - }, - "line-color": "rgba(255,255,255, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 14, - 2, - 20, - 5 - ], - "line-opacity": 0.4, - "line-dasharray": [ - 1, - 1 - ] - }, - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "filter": [ - "all", - [ - "in", - "class", - "via_ferrata" - ], - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "$type", - "LineString" - ] - ] - }, - { - "id": "road_paths", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 13.0, - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [ - 15, - 0.1 - ], - [ - 20, - 0.4 - ] - ] - }, - "line-color": "rgba(255,255,255, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 13, - 1, - 14, - 2, - 20, - 5 - ], - "line-opacity": { - "stops": [ - [ - 15, - 0.35 - ], - [ - 16, - 0.275 - ] - ] - }, - "line-dasharray": [ - 3, - 1 - ] - }, - "filter": [ - "all", - [ - "match", - [ - "get", - "class" - ], - [ - "path", - "footway", - "trail" - ], - true, - false - ], - [ - "!=", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "geometry-type" - ], - "LineString" - ] - ] - }, - { - "id": "road_fill", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 8.0, - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [ - 8, - 0.4 - ], - [ - 14, - 0.1 - ] - ] - }, - "line-color": [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(251, 191, 057)", - "rgb(255,255,255)" - ], - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 7, - 0, - 8, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.5, - 2 - ], - [ - "trunk" - ], - 2, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.5, - 0 - ] - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 2.25 - ], - [ - "trunk" - ], - 2.25, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 0 - ] - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 2.75 - ], - [ - "trunk" - ], - 2.75, - "primary", - 2.5, - "secondary", - 2.5, - "tertiary", - 2, - [ - "minor", - "service" - ], - 1.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 0 - ] - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.25, - 3.25 - ], - [ - "trunk" - ], - 3.25, - "primary", - 3, - "secondary", - 3, - "tertiary", - 2.5, - [ - "minor", - "service" - ], - 1.75, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.25, - 0 - ] - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 3.75 - ], - [ - "trunk" - ], - 3.75, - "primary", - 4, - "secondary", - 3.5, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 0 - ] - ], - 13, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 4.5 - ], - [ - "trunk" - ], - 4.5, - "primary", - 4.5, - "secondary", - 4, - "tertiary", - 3.5, - [ - "minor", - "service" - ], - 2.5, - 2 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 4.5 - ], - "primary", - 3, - "secondary", - 2.75, - "tertiary", - 2.75, - [ - "minor", - "service" - ], - 2, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 0 - ] - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5.5 - ], - [ - "trunk" - ], - 5.5, - "primary", - 5.5, - "secondary", - 5, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3, - 2.5 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5.5 - ], - "primary", - 3.5, - "secondary", - 3, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2.5, - 2.5 - ] - ], - 15, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 3, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 5, - 6.5 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 6.5, - 10.5 - ], - [ - "primary", - "primary_construction" - ], - 6.5, - [ - "secondary", - "secondary_construction" - ], - 5.5, - [ - "tertiary", - "tertiary_construction" - ], - 4.5, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 3.5, - [ - "rail", - "rail_construction" - ], - 5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 1.25, - 3 - ] - ], - 16, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 6, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 8, - 10 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 10, - 13 - ], - [ - "primary", - "primary_construction" - ], - 10, - [ - "secondary", - "secondary_construction" - ], - 9, - [ - "tertiary", - "tertiary_construction" - ], - 8, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 7, - [ - "rail", - "rail_construction" - ], - 9.5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 6.5, - 6 - ] - ], - 20, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 20, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 112, - 126 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 126, - 136 - ], - [ - "primary", - "primary_construction" - ], - 117, - [ - "secondary", - "secondary_construction" - ], - 112, - [ - "tertiary", - "tertiary_construction" - ], - 107, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 97, - [ - "rail", - "rail_construction" - ], - 120, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 81, - 92 - ] - ] - ], - "line-opacity": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 8, - 0, - 9, - 0.3, - 15, - 0.2, - 16, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 0, - [ - "primary", - "secondary", - "tertiary" - ], - 0.05, - 0.1 - ] - ] - }, - "filter": [ - "all", - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car", - "car_ferry", - "chair_lift", - "ferry", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "path", - "footway", - "trail", - "rail", - "transit", - "via_ferrata", - "mask_terrain" - ], - false, - true - ], - [ - "!=", - [ - "get", - "brunnel" - ], - "tunnel" - ], - [ - "==", - [ - "geometry-type" - ], - "LineString" - ] - ] - }, - { - "id": "car_ferry", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 10.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(125, 187, 218, 1)", - "line-width": { - "stops": [ - [ - 8, - 0.4 - ], - [ - 14, - 1 - ], - [ - 18, - 2 - ] - ] - }, - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 0, - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "car_ferry" - ], - 1, - 0 - ], - 12, - [ - "match", - [ - "get", - "class" - ], - [ - "car_ferry" - ], - 1, - 0 - ], - 13, - 1 - ], - "line-dasharray": [ - 16, - 8 - ] - }, - "filter": [ - "all", - [ - "==", - "class", - "car_ferry" - ] - ] + { + "id": "tunnel_road", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 8.0, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": [ + "interpolate", + ["linear"], + ["zoom"], + 7, + ["literal", 3], + 8, + ["literal", 1], + 9, + ["match", ["get", "class"], ["motorway", "trunk", "primary"], 0.4, 3], + 10, + ["match", ["get", "class"], ["motorway", "trunk", "primary", "secondary"], 0.4, 3], + 11, + ["match", ["get", "class"], ["motorway", "trunk", "primary", "secondary"], 0.4, 3], + 12, + ["match", ["get", "class"], ["motorway", "trunk", "primary", "secondary", "tertiary"], 0.4, 3], + 13, + ["match", ["get", "class"], ["motorway", "trunk", "primary", "secondary", "tertiary"], 0.4, ["minor"], 1, 3], + 15, + 0.4 + ], + "line-color": "rgba(255,255,255, 1)", + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + ["match", ["get", "is_route"], [5, 10, 99], 1, ["match", ["get", "ramp"], 1, 1, 0]], + 10, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + 1.2, + ["primary", "secondary", "tertiary", "minor"], + 1, + 0 + ], + 0 + ], + 11, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + 1.3, + ["primary", "secondary", "tertiary", "minor"], + 1, + 0 + ], + 0.25 + ], + 13, + ["match", ["get", "class"], ["motorway", "trunk"], 1.5, ["primary", "secondary", "tertiary", "minor"], 1, 0], + 14, + ["match", ["get", "class"], ["motorway", "trunk"], 2, ["primary", "secondary", "tertiary", "minor"], 1.5, 0], + 15, + ["match", ["get", "class"], ["motorway", "trunk"], 3, 2], + 20, + ["match", ["get", "class"], ["motorway", "trunk"], 5, 2.5] + ], + "line-offset": 0, + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0, + 9, + ["match", ["get", "oneway"], 2, 0, 0.4], + 10, + 0.6, + 15, + 0.35, + 16, + 0.25 + ], + "line-dasharray": [6, 3] + }, + "filter": [ + "all", + ["==", "brunnel", "tunnel"], + [ + "!in", + "class", + "rail", + "ferry", + "car_ferry", + "transit", + "cable_car", + "chair_lift", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "path", + "footway", + "trail", + "rail", + "track", + "transit", + "via_ferrata", + "mask_terrain" + ], + ["==", "$type", "LineString"] + ] + }, + { + "id": "tunnel_road_path_footway", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 6.0, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "rgba(255,255,255, 1)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 13, 1, 14, 2, 20, 5], + "line-offset": 0, + "line-opacity": { + "stops": [ + [15, 0.4], + [16, 0.3] + ] }, - { - "id": "ferry", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 12.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(125, 187, 218, 1)", - "line-width": { - "stops": [ - [ - 8, - 0.4 - ], - [ - 14, - 1 - ], - [ - 18, - 2 - ] - ] - }, - "line-opacity": { - "stops": [ - [ - 12, - 0 - ], - [ - 13, - 1 - ] - ] - }, - "line-dasharray": [ - 6, - 3 - ] - }, - "filter": [ - "all", - [ - "==", - "class", - "ferry" - ] - ] + "line-dasharray": [1, 2] + }, + "metadata": { + "maputnik:comment": "casing color for motorway is brown" + }, + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "path", "footway"], ["==", "$type", "LineString"]] + }, + { + "id": "road_via_ferrata", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 14.0, + "layout": { + "line-cap": "butt", + "line-join": "bevel", + "visibility": "visible" + }, + "paint": { + "line-blur": { + "stops": [ + [15, 0.1], + [20, 0.4] + ] }, - { - "id": "public_transport", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 9.0, - "layout": { - "line-cap": "butt", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 0.6, - 18, - 0.4 - ], - "line-color": { - "stops": [ - [ - 12, - "rgba(238, 234, 234, 1)" - ], - [ - 15, - "rgba(116, 114, 114, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "subclass" - ], - "rail", - 0.75, - 0 - ], - 0 - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 0.75 - ], - 0.5 - ], - 0.5 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 0.75, - 0 - ] - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "class" - ], - "transit", - 1, - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - 2, - 1 - ], - 0 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 1, - 0 - ] - ], - 16, - 0.5 - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0, - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 1, - 0 - ], - 12, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail", - "funicular" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 1 - ], - 0 - ], - 0 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail", - "funicular" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 1 - ], - 0 - ], - 1 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail", - "funicular" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 1 - ], - 0 - ], - 1 - ], - 15, - 1, - 16, - 0 - ] - }, - "filter": [ - "all", - [ - "in", - "class", - "rail", - "transit" - ], - [ - "!in", - "brunnel", - "tunnel" - ], - [ - "==", - "$type", - "LineString" - ] - ] + "line-color": "rgba(255,255,255, 1)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 2, 20, 5], + "line-opacity": 0.4, + "line-dasharray": [1, 1] + }, + "metadata": { + "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" + }, + "filter": [ + "all", + ["in", "class", "via_ferrata"], + ["!in", "brunnel", "bridge", "tunnel"], + ["==", "$type", "LineString"] + ] + }, + { + "id": "road_paths", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 13.0, + "layout": { + "line-cap": "butt", + "line-join": "bevel", + "visibility": "visible" + }, + "paint": { + "line-blur": { + "stops": [ + [15, 0.1], + [20, 0.4] + ] }, - { - "id": "spot_elevation", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "spot_elevation", - "minzoom": 14.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 11, - 18, - 13 - ], - "icon-image": [ - "match", - [ - "get", - "class" - ], - [ - "spot_elevation", - "terrain_spot_elevation" - ], - "circle_black_6", - "" - ], - "text-field": [ - "get", - "ele" - ], - "visibility": "visible", - "icon-offset": [ - 0, - 0 - ], - "icon-rotate": 0, - "text-anchor": "center", - "icon-padding": 30, - "icon-optional": false, - "text-optional": false, - "symbol-placement": "point", - "text-line-height": 0.9, - "text-keep-upright": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-variable-anchor": [ - "literal", - [ - "bottom-left", - "top-left", - "bottom-right", - "top-right" - ] - ], - "text-ignore-placement": false - }, - "paint": { - "icon-color": "#000000", - "text-color": "rgba(255, 255, 250, 1)", - "icon-opacity": 0.8, - "text-opacity": [ - "literal", - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 2, - 20, - 2.5 - ] - }, - "filter": [ - "all", - [ - "!in", - "class", - "doline", - "lake_elevation", - "sinkhole", - "sinkhole_rock", - "sinkhole_scree", - "sinkhole_water", - "sinkhole_ice" - ] - ] + "line-color": "rgba(255,255,255, 1)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 13, 1, 14, 2, 20, 5], + "line-opacity": { + "stops": [ + [15, 0.35], + [16, 0.275] + ] }, - { - "id": "boundary_canton_l_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "boundary", - "minzoom": 13.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - 11, - 18, - 14 - ], - "text-field": [ - "get", - "adm4_l" - ], - "visibility": "visible", - "text-offset": [ - 0, - 1 - ], - "text-justify": "center", - "text-padding": 0.01, - "symbol-spacing": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - 200, - 18, - 400 - ], - "text-max-angle": 30, - "text-transform": "uppercase", - "symbol-placement": "line", - "icon-keep-upright": false, - "text-keep-upright": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.3, - "text-pitch-alignment": "auto", - "text-ignore-placement": true, - "text-rotation-alignment": "auto" - }, - "paint": { - "text-color": "hsl(300,90%,84%)", - "text-opacity": 0.9, - "text-halo-blur": 1, - "text-halo-color": "rgba(16, 16, 16, 1)", - "text-halo-width": 1.5, - "text-translate-anchor": "viewport" - }, - "filter": [ - "all", - [ - "match", - [ - "get", - "admin_level" - ], - [ - 2, - 4 - ], - true, - false - ], - [ - "!=", - [ - "get", - "adm4_l" - ], - [ - "get", - "adm4_r" - ] - ] - ] - }, - { - "id": "boundary_canton_r_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "boundary", - "minzoom": 13.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - 11, - 18, - 14 - ], - "text-field": [ - "get", - "adm4_r" - ], - "visibility": "visible", - "text-offset": [ - 0, - -1 - ], - "text-justify": "center", - "text-padding": 0.01, - "symbol-spacing": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - 200, - 18, - 400 - ], - "text-max-angle": 30, - "text-transform": "uppercase", - "symbol-placement": "line", - "icon-keep-upright": false, - "text-keep-upright": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.3, - "text-pitch-alignment": "auto", - "text-ignore-placement": true, - "text-rotation-alignment": "auto" - }, - "paint": { - "text-color": "hsl(300,90%,84%)", - "text-opacity": 0.9, - "text-halo-blur": 1, - "text-halo-color": "rgba(16, 16, 16, 1)", - "text-halo-width": 1.5, - "text-translate-anchor": "viewport" - }, - "filter": [ - "all", - [ - "match", - [ - "get", - "admin_level" - ], - [ - 2, - 4 - ], - true, - false - ], - [ - "!=", - [ - "get", - "adm4_l" - ], - [ - "get", - "adm4_r" - ] - ] - ] + "line-dasharray": [3, 1] + }, + "filter": [ + "all", + ["match", ["get", "class"], ["path", "footway", "trail"], true, false], + ["!=", ["get", "brunnel"], "tunnel"], + ["==", ["geometry-type"], "LineString"] + ] + }, + { + "id": "road_fill", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 8.0, + "layout": { + "line-cap": "butt", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": { + "stops": [ + [8, 0.4], + [14, 0.1] + ] }, - { - "id": "waterway_line_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "waterway", - "minzoom": 13.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 10, - 10.5, - 16, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - [ - "8", - "9", - "10" - ], - 16, - [ - "7", - "6", - "5" - ], - 15, - [ - "4", - "3" - ], - 14, - [ - "2", - "1" - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 18, - 14 - ] - ] - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-padding": 0, - "symbol-spacing": 650, - "symbol-z-order": "auto", - "text-max-width": 9999, - "symbol-placement": "line", - "text-keep-upright": true, - "text-allow-overlap": false, - "text-letter-spacing": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0.1, - 12, - [ - "match", - [ - "get", - "class" - ], - [ - "river" - ], - 0.4, - 0.3 - ] - ], - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": [ - "match", - [ - "get", - "intermittent" - ], - 1, - "rgba(255, 255, 250, 1)", - "rgba(135, 220, 255,1)" - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(42, 42, 56, 1)", - "text-halo-width": 1.5 - }, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "intermittent", - 1 - ] + "line-color": ["match", ["get", "class"], ["motorway", "trunk"], "rgb(251, 191, 057)", "rgb(255,255,255)"], + "line-width": [ + "interpolate", + ["exponential", 2], + ["zoom"], + 7, + 0, + 8, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 0.5, 2], ["trunk"], 2, 2], + ["match", ["get", "ramp"], 1, 0.5, 0] + ], + 9, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 0.75, 2.25], ["trunk"], 2.25, 2], + ["match", ["get", "ramp"], 1, 0.75, 0] + ], + 10, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 0.75, 2.75], + ["trunk"], + 2.75, + "primary", + 2.5, + "secondary", + 2.5, + "tertiary", + 2, + ["minor", "service"], + 1.5, + 0 + ], + ["match", ["get", "ramp"], 1, 0.75, 0] + ], + 11, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.25, 3.25], + ["trunk"], + 3.25, + "primary", + 3, + "secondary", + 3, + "tertiary", + 2.5, + ["minor", "service"], + 1.75, + 0 + ], + ["match", ["get", "ramp"], 1, 1.25, 0] + ], + 12, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.5, 3.75], + ["trunk"], + 3.75, + "primary", + 4, + "secondary", + 3.5, + "tertiary", + 3, + ["minor", "service"], + 2, + 0 + ], + ["match", ["get", "ramp"], 1, 1.5, 0] + ], + 13, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.75, 4.5], + ["trunk"], + 4.5, + "primary", + 4.5, + "secondary", + 4, + "tertiary", + 3.5, + ["minor", "service"], + 2.5, + 2 + ], + 11, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 1.75, 4.5], + "primary", + 3, + "secondary", + 2.75, + "tertiary", + 2.75, + ["minor", "service"], + 2, + 2 + ], + ["match", ["get", "ramp"], 1, 1.75, 0] + ], + 14, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2.75, 5.5], + ["trunk"], + 5.5, + "primary", + 5.5, + "secondary", + 5, + "tertiary", + 4, + ["minor", "service"], + 3, + 2.5 + ], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 2.75, 5.5], + "primary", + 3.5, + "secondary", + 3, + "tertiary", + 3, + ["minor", "service"], + 2.5, + 2.5 ] - }, - { - "id": "public_transportation_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "transportation_name", - "minzoom": 13.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 14, - 10.5, - 18, - 16 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-anchor": "center", - "text-offset": [ - 0, - 0 - ], - "text-padding": 2, - "symbol-spacing": 500, - "symbol-z-order": "auto", - "text-max-angle": 40, - "text-transform": "none", - "symbol-placement": "line", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-letter-spacing": 0.1, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(227, 227, 227, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(32,32,32, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 1.5, - 20, - 2.5 - ] - }, - "filter": [ - "all", - [ - "!in", - "subclass", - "funicular" - ], - [ - "in", - "class", - "rail", - "transit" - ] + ], + 15, + [ + "match", + ["get", "subclass"], + "funicular", + 3, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 5, 6.5], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 6.5, 10.5], + ["primary", "primary_construction"], + 6.5, + ["secondary", "secondary_construction"], + 5.5, + ["tertiary", "tertiary_construction"], + 4.5, + ["minor", "minor_construction", "service", "service_construction"], + 3.5, + ["rail", "rail_construction"], + 5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 1.25, + 3 ] - }, - { - "id": "transportation_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "transportation_name", - "minzoom": 13.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 11, - 10.5 - ], - 18, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 18, - 16 - ] - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-anchor": "center", - "text-offset": [ - 0, - 0 - ], - "text-padding": 2, - "symbol-spacing": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15, - 200, - 18, - 400 - ], - "symbol-z-order": "auto", - "text-max-angle": 40, - "text-transform": "none", - "symbol-placement": "line", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-letter-spacing": 0.1, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": [ - "match", - [ - "get", - "class" - ], - [ - "ferry", - "car_ferry" - ], - "rgba(150, 220, 255,1)", - "rgba(255, 255, 250, 1)" - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 2, - 20, - 2.5 - ] - }, - "filter": [ - "all", - [ - "!in", - "subclass", - "funicular" - ], - [ - "!in", - "class", - "rail", - "ferry", - "car_ferry", - "transit", - "cable_car", - "chair_lift", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "rail", - "transit", - "via_ferrata", - "mask_terrain" - ] + ], + 16, + [ + "match", + ["get", "subclass"], + "funicular", + 6, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 8, 10], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 10, 13], + ["primary", "primary_construction"], + 10, + ["secondary", "secondary_construction"], + 9, + ["tertiary", "tertiary_construction"], + 8, + ["minor", "minor_construction", "service", "service_construction"], + 7, + ["rail", "rail_construction"], + 9.5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 6.5, + 6 ] - }, - { - "id": "aerialway", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 12, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.25, - "line-color": { - "stops": [ - [ - 7, - "rgba(156, 155, 155, 1)" - ], - [ - 15, - "rgba(106, 105, 105, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0.2, - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car" - ], - 2, - 0.75 - ], - 18, - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car" - ], - 4, - 1.5 - ] - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, - 0, - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car", - "gondola" - ], - 1, - 0 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car", - "gondola", - "chair_lift" - ], - 1, - 0 - ] - ] - }, - "filter": [ - "all", - [ - "in", - "class", - "cable_car", - "gondola", - "chair_lift" - ] - ] - }, - { - "id": "road_number", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "transportation_name", - "minzoom": 13.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Bold" - ], - "text-size": 10.5, - "icon-image": "box_white_grey_casing_{ref_length}", - "text-field": [ - "get", - "ref" - ], - "visibility": "visible", - "icon-offset": [ - 0, - -1.3 - ], - "text-anchor": "center", - "icon-padding": 2, - "text-justify": "center", - "icon-optional": false, - "icon-text-fit": "none", - "text-optional": false, - "symbol-spacing": [ - "step", - [ - "zoom" - ], - 300, - 10, - 600, - 14, - 800 - ], - "symbol-z-order": "auto", - "symbol-placement": "line", - "icon-keep-upright": false, - "text-keep-upright": true, - "icon-allow-overlap": false, - "symbol-avoid-edges": false, - "text-letter-spacing": 0, - "icon-pitch-alignment": "viewport", - "text-pitch-alignment": "viewport", - "icon-ignore-placement": false, - "icon-rotation-alignment": "viewport", - "text-rotation-alignment": "viewport" - }, - "paint": { - "text-color": "rgba(64, 64, 64, 1)", - "icon-opacity": 0.7, - "text-opacity": 1, - "text-halo-blur": 0, - "text-halo-color": "rgba(0, 0, 0, 0)", - "text-halo-width": 0 - }, - "filter": [ - "all", - [ - "in", - "class", - "motorway", - "trunk" - ], - [ - "has", - "ref" - ], - [ - "<=", - "ref_length", - 12 - ], - [ - "==", - "$type", - "LineString" - ] - ] - }, - { - "id": "area_name_glacier_point_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "area_name", - "minzoom": 14.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 11, - 16, - 20 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "symbol-spacing": { - "stops": [ - [ - 12, - 250 - ], - [ - 14, - 550 - ] - ] - }, - "symbol-z-order": "auto", - "text-max-width": 99999, - "symbol-placement": "point", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.3, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(175, 220, 255,1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(16, 16, 16, 1)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "in", - "subclass", - "glacier" - ] + ], + 20, + [ + "match", + ["get", "subclass"], + "funicular", + 20, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 112, 126], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 126, 136], + ["primary", "primary_construction"], + 117, + ["secondary", "secondary_construction"], + 112, + ["tertiary", "tertiary_construction"], + 107, + ["minor", "minor_construction", "service", "service_construction"], + 97, + ["rail", "rail_construction"], + 120, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 81, + 92 ] + ] + ], + "line-opacity": [ + "interpolate", + ["exponential", 2], + ["zoom"], + 8, + 0, + 9, + 0.3, + 15, + 0.2, + 16, + ["match", ["get", "class"], ["motorway", "trunk"], 0, ["primary", "secondary", "tertiary"], 0.05, 0.1] + ] + }, + "filter": [ + "all", + [ + "match", + ["get", "class"], + [ + "cable_car", + "car_ferry", + "chair_lift", + "ferry", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "path", + "footway", + "trail", + "rail", + "transit", + "via_ferrata", + "mask_terrain" + ], + false, + true + ], + ["!=", ["get", "brunnel"], "tunnel"], + ["==", ["geometry-type"], "LineString"] + ] + }, + { + "id": "car_ferry", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 10.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "rgba(125, 187, 218, 1)", + "line-width": { + "stops": [ + [8, 0.4], + [14, 1], + [18, 2] + ] }, - { - "id": "area_name_glacier_line_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "area_name", - "minzoom": 12.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 11, - 16, - 20 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "symbol-spacing": { - "stops": [ - [ - 12, - 250 - ], - [ - 13, - 950 - ] - ] - }, - "symbol-z-order": "auto", - "text-max-width": 99999, - "symbol-placement": "line-center", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": { - "stops": [ - [ - 10, - 0.15 - ], - [ - 12, - 0.3 - ] - ] - }, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(175, 220, 255,1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(16, 16, 16, 1)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "in", - "subclass", - "glacier" - ] - ] + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + 0, + 11, + ["match", ["get", "class"], ["car_ferry"], 1, 0], + 12, + ["match", ["get", "class"], ["car_ferry"], 1, 0], + 13, + 1 + ], + "line-dasharray": [16, 8] + }, + "filter": ["all", ["==", "class", "car_ferry"]] + }, + { + "id": "ferry", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 12.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "rgba(125, 187, 218, 1)", + "line-width": { + "stops": [ + [8, 0.4], + [14, 1], + [18, 2] + ] }, - { - "id": "poi_rank1", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "poi", - "minzoom": 14.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - [ - "match", - [ - "get", - "class" - ], - "hospital", - 11, - 13 - ], - 18, - [ - "match", - [ - "get", - "class" - ], - "hospital", - 16, - 18 - ] - ], - "icon-image": [ - "match", - [ - "get", - "subclass" - ], - "railway_station", - "circle_dark_grey_6", - "castle", - "castle_white", - "hospital", - "hospital_white", - "" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": [ - "match", - [ - "get", - "subclass" - ], - [ - "castle", - "hospital" - ], - "left", - "railway_station", - "bottom-left", - "center" - ], - "text-offset": [ - "match", - [ - "get", - "subclass" - ], - "railway_station", - [ - "literal", - [ - 0.5, - 0.15 - ] - ], - "hospital", - [ - "literal", - [ - 0.9, - 0.1 - ] - ], - [ - "literal", - [ - 0.8, - 0.15 - ] - ] - ], - "text-justify": "left", - "text-padding": 10, - "text-optional": false, - "text-max-width": 10, - "symbol-avoid-edges": true, - "text-letter-spacing": 0.03 - }, - "paint": { - "text-color": "rgba(240, 240, 240, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 14, - [ - "match", - [ - "get", - "class" - ], - "hospital", - [ - "case", - [ - "has", - "name" - ], - 1, - 0 - ], - 1 - ] - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "castle", - "hospital" - ], - 0, - 1 - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "castle", - "hospital" - ], - 0, - 1 - ], - 16, - 1 - ], - "text-halo-blur": 1, - "text-halo-color": [ - "match", - [ - "get", - "subclass" - ], - "railway_station", - "rgba(32, 32, 32, 1)", - "rgba(48, 48, 48, 1)" - ], - "text-halo-width": 2 - }, - "filter": [ - "all", - [ - "in", - "subclass", - "castle", - "hospital", - "railway_station" - ], - [ - "in", - "class", - "castle", - "hospital", - "railway" - ] - ] + "line-opacity": { + "stops": [ + [12, 0], + [13, 1] + ] }, - { - "id": "place_other", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 11.0, - "maxzoom": 17.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Bold" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 4, - [ - "case", - [ - "<=", - 5000, - [ - "get", - "population" - ] - ], - 10, - [ - "<=", - 2000, - [ - "get", - "population" - ] - ], - 8, - 6 - ], - 16, - [ - "case", - [ - "<=", - 5000, - [ - "get", - "population" - ] - ], - 20, - [ - "<=", - 2000, - [ - "get", - "population" - ] - ], - 18, - 16 - ] - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": "center", - "text-offset": [ - "literal", - [ - 0.3, - 0.2 - ] - ], - "text-justify": "auto", - "text-padding": 20, - "icon-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "none", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "text-letter-spacing": 0.03 - }, - "paint": { - "text-color": "rgba(255, 255, 250, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "case", - [ - ">", - 18, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 13, - 1, - 14, - 0 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "case", - [ - ">", - 18, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 13, - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": 1.5 - }, - "filter": [ - "all", - [ - "!in", - "class", - "continent", - "country", - "state", - "city", - "town", - "village", - "hamlet", - "isolated_dwelling" - ] - ] + "line-dasharray": [6, 3] + }, + "filter": ["all", ["==", "class", "ferry"]] + }, + { + "id": "public_transport", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 9.0, + "layout": { + "line-cap": "butt", + "visibility": "visible" + }, + "paint": { + "line-blur": ["interpolate", ["linear"], ["zoom"], 14, 0.6, 18, 0.4], + "line-color": { + "stops": [ + [12, "rgba(238, 234, 234, 1)"], + [15, "rgba(116, 114, 114, 1)"] + ] }, - { - "id": "peaks_other", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 15.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_black_4", - 10, - "circle_black_6" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "center", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "text-variable-anchor": [ - "literal", - [ - "bottom-left", - "top-left", - "bottom-right", - "top-right" - ] - ], - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "text-color": "rgba(255, 255, 248, 1)", - "icon-opacity": 1, - "text-opacity": 1, - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-width": 0, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 1.75, - 15, - 2 - ] - }, - "filter": [ + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 9, + ["match", ["get", "is_route"], 99, ["match", ["get", "subclass"], "rail", 0.75, 0], 0], + 10, + [ + "match", + ["get", "is_route"], + 99, + [ + "match", + ["get", "class"], + ["rail"], + [ "match", - [ - "get", - "class" - ], - [ - "rocky_knoll", - "saddle" - ], - true, - false - ] - }, - { - "id": "peaks_rank5+", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 13.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_black_4", - 10, - "circle_black_6" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom-left", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "text-color": "rgba(255, 255, 248, 1)", - "icon-opacity": 1, - "text-opacity": 1, - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-width": 0, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 1.75, - 15, - 2 - ] - }, - "filter": [ - "all", - [ - ">=", - "rank", - 5 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] - }, - { - "id": "peaks_rank4", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 12.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_black_4", - 10, - "circle_black_6" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom-left", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "text-color": "rgba(255, 255, 248, 1)", - "icon-opacity": 1, - "text-opacity": 1, - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-width": 0, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 1.75, - 15, - 2 - ] - }, - "filter": [ - "all", - [ - "==", - "rank", - 4 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 0.75], + 0.5 + ], + 0.5 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 0.75, 0] + ], + 14, + [ + "match", + ["get", "is_route"], + 99, + [ + "match", + ["get", "class"], + "transit", + 1, + ["rail"], + ["match", ["get", "subclass"], ["rail", "narrow_gauge", "rack_rail"], 2, 1], + 0 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 1, 0] + ], + 16, + 0.5 + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0, + 9, + ["match", ["get", "class"], ["rail"], 1, 0], + 12, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail", "funicular"], + ["match", ["get", "service"], ["yard", "siding"], 0, 1], + 0 + ], + 0 + ], + 13, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail", "funicular"], + ["match", ["get", "service"], ["yard", "siding"], 0, 1], + 0 + ], + 1 + ], + 14, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail", "funicular"], + ["match", ["get", "service"], ["yard", "siding"], 0, 1], + 0 + ], + 1 + ], + 15, + 1, + 16, + 0 + ] + }, + "filter": ["all", ["in", "class", "rail", "transit"], ["!in", "brunnel", "tunnel"], ["==", "$type", "LineString"]] + }, + { + "id": "spot_elevation", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "spot_elevation", + "minzoom": 14.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 14, 11, 18, 13], + "icon-image": ["match", ["get", "class"], ["spot_elevation", "terrain_spot_elevation"], "circle_black_6", ""], + "text-field": ["get", "ele"], + "visibility": "visible", + "icon-offset": [0, 0], + "icon-rotate": 0, + "text-anchor": "center", + "icon-padding": 30, + "icon-optional": false, + "text-optional": false, + "symbol-placement": "point", + "text-line-height": 0.9, + "text-keep-upright": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-variable-anchor": ["literal", ["bottom-left", "top-left", "bottom-right", "top-right"]], + "text-ignore-placement": false + }, + "paint": { + "icon-color": "#000000", + "text-color": "rgba(255, 255, 250, 1)", + "icon-opacity": 0.8, + "text-opacity": ["literal", 1], + "text-halo-blur": 1, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 2, 20, 2.5] + }, + "filter": [ + "all", + [ + "!in", + "class", + "doline", + "lake_elevation", + "sinkhole", + "sinkhole_rock", + "sinkhole_scree", + "sinkhole_water", + "sinkhole_ice" + ] + ] + }, + { + "id": "boundary_canton_l_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "boundary", + "minzoom": 13.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 13, 11, 18, 14], + "text-field": ["get", "adm4_l"], + "visibility": "visible", + "text-offset": [0, 1], + "text-justify": "center", + "text-padding": 0.01, + "symbol-spacing": ["interpolate", ["linear"], ["zoom"], 13, 200, 18, 400], + "text-max-angle": 30, + "text-transform": "uppercase", + "symbol-placement": "line", + "icon-keep-upright": false, + "text-keep-upright": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.3, + "text-pitch-alignment": "auto", + "text-ignore-placement": true, + "text-rotation-alignment": "auto" + }, + "paint": { + "text-color": "hsl(300,90%,84%)", + "text-opacity": 0.9, + "text-halo-blur": 1, + "text-halo-color": "rgba(16, 16, 16, 1)", + "text-halo-width": 1.5, + "text-translate-anchor": "viewport" + }, + "filter": [ + "all", + ["match", ["get", "admin_level"], [2, 4], true, false], + ["!=", ["get", "adm4_l"], ["get", "adm4_r"]] + ] + }, + { + "id": "boundary_canton_r_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "boundary", + "minzoom": 13.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 13, 11, 18, 14], + "text-field": ["get", "adm4_r"], + "visibility": "visible", + "text-offset": [0, -1], + "text-justify": "center", + "text-padding": 0.01, + "symbol-spacing": ["interpolate", ["linear"], ["zoom"], 13, 200, 18, 400], + "text-max-angle": 30, + "text-transform": "uppercase", + "symbol-placement": "line", + "icon-keep-upright": false, + "text-keep-upright": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.3, + "text-pitch-alignment": "auto", + "text-ignore-placement": true, + "text-rotation-alignment": "auto" + }, + "paint": { + "text-color": "hsl(300,90%,84%)", + "text-opacity": 0.9, + "text-halo-blur": 1, + "text-halo-color": "rgba(16, 16, 16, 1)", + "text-halo-width": 1.5, + "text-translate-anchor": "viewport" + }, + "filter": [ + "all", + ["match", ["get", "admin_level"], [2, 4], true, false], + ["!=", ["get", "adm4_l"], ["get", "adm4_r"]] + ] + }, + { + "id": "waterway_line_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "waterway", + "minzoom": 13.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["exponential", 1.5], + ["zoom"], + 10, + 10.5, + 16, + [ + "match", + ["to-string", ["get", "width"]], + ["8", "9", "10"], + 16, + ["7", "6", "5"], + 15, + ["4", "3"], + 14, + ["2", "1"], + 13, + ["match", ["get", "class"], ["river", "canal"], 18, 14] + ] + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-padding": 0, + "symbol-spacing": 650, + "symbol-z-order": "auto", + "text-max-width": 9999, + "symbol-placement": "line", + "text-keep-upright": true, + "text-allow-overlap": false, + "text-letter-spacing": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0.1, + 12, + ["match", ["get", "class"], ["river"], 0.4, 0.3] + ], + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": ["match", ["get", "intermittent"], 1, "rgba(255, 255, 250, 1)", "rgba(135, 220, 255,1)"], + "text-halo-blur": 1, + "text-halo-color": "rgba(42, 42, 56, 1)", + "text-halo-width": 1.5 + }, + "filter": ["all", ["==", "$type", "LineString"], ["!=", "intermittent", 1]] + }, + { + "id": "public_transportation_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "transportation_name", + "minzoom": 13.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["exponential", 1.5], ["zoom"], 14, 10.5, 18, 16], + "text-field": "{name:latin}", + "visibility": "visible", + "text-anchor": "center", + "text-offset": [0, 0], + "text-padding": 2, + "symbol-spacing": 500, + "symbol-z-order": "auto", + "text-max-angle": 40, + "text-transform": "none", + "symbol-placement": "line", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-letter-spacing": 0.1, + "text-pitch-alignment": "map", + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(227, 227, 227, 1)", + "text-halo-blur": 1, + "text-halo-color": "rgba(32,32,32, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1.5, 20, 2.5] + }, + "filter": ["all", ["!in", "subclass", "funicular"], ["in", "class", "rail", "transit"]] + }, + { + "id": "transportation_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "transportation_name", + "minzoom": 13.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["exponential", 1.5], + ["zoom"], + 14, + ["match", ["get", "class"], ["motorway", "trunk"], 11, 10.5], + 18, + ["match", ["get", "class"], ["motorway", "trunk"], 18, 16] + ], + "text-field": "{name:latin}", + "visibility": "visible", + "text-anchor": "center", + "text-offset": [0, 0], + "text-padding": 2, + "symbol-spacing": ["interpolate", ["linear"], ["zoom"], 15, 200, 18, 400], + "symbol-z-order": "auto", + "text-max-angle": 40, + "text-transform": "none", + "symbol-placement": "line", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-letter-spacing": 0.1, + "text-pitch-alignment": "map", + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": [ + "match", + ["get", "class"], + ["ferry", "car_ferry"], + "rgba(150, 220, 255,1)", + "rgba(255, 255, 250, 1)" + ], + "text-halo-blur": 1, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 2, 20, 2.5] + }, + "filter": [ + "all", + ["!in", "subclass", "funicular"], + [ + "!in", + "class", + "rail", + "ferry", + "car_ferry", + "transit", + "cable_car", + "chair_lift", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "rail", + "transit", + "via_ferrata", + "mask_terrain" + ] + ] + }, + { + "id": "aerialway", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 12, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.25, + "line-color": { + "stops": [ + [7, "rgba(156, 155, 155, 1)"], + [15, "rgba(106, 105, 105, 1)"] + ] }, - { - "id": "peaks_rank3", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 11.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_black_4", - 10, - "circle_black_6" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom-left", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "text-color": "rgba(255, 255, 248, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 8, - [ - "match", - [ - "get", - "class" - ], - "alpine_peak", - 1, - 0 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "alpine_peak", - "main_peak" - ], - 1, - 0 - ], - 12, - 1 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 8, - [ - "match", - [ - "get", - "class" - ], - "alpine_peak", - 1, - 0 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "alpine_peak", - "main_peak" - ], - 1, - 0 - ], - 12, - 1 - ], - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-width": 0, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 1.75, - 15, - 2 - ] - }, - "filter": [ - "all", - [ - "==", - "rank", - 3 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0.2, + 14, + ["match", ["get", "class"], ["cable_car"], 2, 0.75], + 18, + ["match", ["get", "class"], ["cable_car"], 4, 1.5] + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 12, + 0, + 13, + ["match", ["get", "class"], ["cable_car", "gondola"], 1, 0], + 14, + ["match", ["get", "class"], ["cable_car", "gondola", "chair_lift"], 1, 0] + ] + }, + "filter": ["all", ["in", "class", "cable_car", "gondola", "chair_lift"]] + }, + { + "id": "road_number", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "transportation_name", + "minzoom": 13.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Bold"], + "text-size": 10.5, + "icon-image": "box_white_grey_casing_{ref_length}", + "text-field": ["get", "ref"], + "visibility": "visible", + "icon-offset": [0, -1.3], + "text-anchor": "center", + "icon-padding": 2, + "text-justify": "center", + "icon-optional": false, + "icon-text-fit": "none", + "text-optional": false, + "symbol-spacing": ["step", ["zoom"], 300, 10, 600, 14, 800], + "symbol-z-order": "auto", + "symbol-placement": "line", + "icon-keep-upright": false, + "text-keep-upright": true, + "icon-allow-overlap": false, + "symbol-avoid-edges": false, + "text-letter-spacing": 0, + "icon-pitch-alignment": "viewport", + "text-pitch-alignment": "viewport", + "icon-ignore-placement": false, + "icon-rotation-alignment": "viewport", + "text-rotation-alignment": "viewport" + }, + "paint": { + "text-color": "rgba(64, 64, 64, 1)", + "icon-opacity": 0.7, + "text-opacity": 1, + "text-halo-blur": 0, + "text-halo-color": "rgba(0, 0, 0, 0)", + "text-halo-width": 0 + }, + "filter": [ + "all", + ["in", "class", "motorway", "trunk"], + ["has", "ref"], + ["<=", "ref_length", 12], + ["==", "$type", "LineString"] + ] + }, + { + "id": "area_name_glacier_point_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "area_name", + "minzoom": 14.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": ["interpolate", ["linear"], ["zoom"], 10, 11, 16, 20], + "text-field": "{name:latin}", + "visibility": "visible", + "symbol-spacing": { + "stops": [ + [12, 250], + [14, 550] + ] }, - { - "id": "peaks_rank2", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 10.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_black_4", - 10, - "circle_black_6" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom-left", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "text-color": "rgba(255, 255, 248, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 8, - [ - "match", - [ - "get", - "class" - ], - "alpine_peak", - 1, - 0 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "alpine_peak", - "main_peak" - ], - 1, - 0 - ], - 12, - 1 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 8, - [ - "match", - [ - "get", - "class" - ], - "alpine_peak", - 1, - 0 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "alpine_peak", - "main_peak" - ], - 1, - 0 - ], - 12, - 1 - ], - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-color": "rgba(0, 0, 0, 0)", - "icon-halo-width": 0, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 1.75, - 15, - 2 - ] - }, - "filter": [ - "all", - [ - "==", - "rank", - 2 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] + "symbol-z-order": "auto", + "text-max-width": 99999, + "symbol-placement": "point", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.3, + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(175, 220, 255,1)", + "text-halo-blur": 1, + "text-halo-color": "rgba(16, 16, 16, 1)", + "text-halo-width": 1 + }, + "filter": ["all", ["==", "$type", "Point"], ["in", "subclass", "glacier"]] + }, + { + "id": "area_name_glacier_line_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "area_name", + "minzoom": 12.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": ["interpolate", ["linear"], ["zoom"], 10, 11, 16, 20], + "text-field": "{name:latin}", + "visibility": "visible", + "symbol-spacing": { + "stops": [ + [12, 250], + [13, 950] + ] }, - { - "id": "place_hamlet_isolated_dwelling", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 12.0, - "maxzoom": 17.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Bold" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 4, - [ - "case", - [ - "<=", - 50, - [ - "get", - "population" - ] - ], - 10, - 8 - ], - 16, - [ - "case", - [ - "<=", - 50, - [ - "get", - "population" - ] - ], - 20, - 18 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_black_4", - 12, - "circle_black_6" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": [ - "literal", - "bottom-left" - ], - "text-offset": [ - "literal", - [ - 0.3, - 0.2 - ] - ], - "text-justify": "auto", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 2, - 13, - 2, - 14, - 0 - ], - "icon-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "none", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "text-letter-spacing": 0.03 - }, - "paint": { - "text-color": "rgba(255, 255, 250, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "case", - [ - ">", - 30, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 13, - [ - "case", - [ - ">", - 31, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 14, - 0 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "case", - [ - ">", - 30, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 13, - [ - "case", - [ - ">", - 31, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 14, - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": 1.5 - }, - "filter": [ - "all", - [ - "in", - "class", - "hamlet", - "isolated_dwelling" - ] - ] + "symbol-z-order": "auto", + "text-max-width": 99999, + "symbol-placement": "line-center", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": { + "stops": [ + [10, 0.15], + [12, 0.3] + ] }, - { - "id": "place_country_exclave", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 11.0, - "maxzoom": 22.0, - "layout": { - "text-font": [ - "B612 Bold" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 1, - 11, - 7, - 14, - 11, - 16, - 18, - 24 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-max-width": 10, - "text-transform": "uppercase", - "text-letter-spacing": 0.12 - }, - "paint": { - "text-color": "hsl(300,90%,80%)", - "text-opacity": 0.9, - "text-halo-blur": 1, - "text-halo-color": "rgba(16, 16, 16, 1)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "in", - "class", - "country" - ], - [ - "in", - "iso_a2", - "DE", - "IT" - ] - ] + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(175, 220, 255,1)", + "text-halo-blur": 1, + "text-halo-color": "rgba(16, 16, 16, 1)", + "text-halo-width": 1 + }, + "filter": ["all", ["==", "$type", "LineString"], ["in", "subclass", "glacier"]] + }, + { + "id": "poi_rank1", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "poi", + "minzoom": 14.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 13, + ["match", ["get", "class"], "hospital", 11, 13], + 18, + ["match", ["get", "class"], "hospital", 16, 18] + ], + "icon-image": [ + "match", + ["get", "subclass"], + "railway_station", + "circle_dark_grey_6", + "castle", + "castle_white", + "hospital", + "hospital_white", + "" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": [ + "match", + ["get", "subclass"], + ["castle", "hospital"], + "left", + "railway_station", + "bottom-left", + "center" + ], + "text-offset": [ + "match", + ["get", "subclass"], + "railway_station", + ["literal", [0.5, 0.15]], + "hospital", + ["literal", [0.9, 0.1]], + ["literal", [0.8, 0.15]] + ], + "text-justify": "left", + "text-padding": 10, + "text-optional": false, + "text-max-width": 10, + "symbol-avoid-edges": true, + "text-letter-spacing": 0.03 + }, + "paint": { + "text-color": "rgba(240, 240, 240, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 14, + ["match", ["get", "class"], "hospital", ["case", ["has", "name"], 1, 0], 1] + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 14, + ["match", ["get", "class"], ["castle", "hospital"], 0, 1], + 15, + ["match", ["get", "class"], ["castle", "hospital"], 0, 1], + 16, + 1 + ], + "text-halo-blur": 1, + "text-halo-color": [ + "match", + ["get", "subclass"], + "railway_station", + "rgba(32, 32, 32, 1)", + "rgba(48, 48, 48, 1)" + ], + "text-halo-width": 2 + }, + "filter": [ + "all", + ["in", "subclass", "castle", "hospital", "railway_station"], + ["in", "class", "castle", "hospital", "railway"] + ] + }, + { + "id": "place_other", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 11.0, + "maxzoom": 17.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Bold"], + "text-size": [ + "interpolate", + ["cubic-bezier", 0.5, 0.1, 0.7, 1], + ["zoom"], + 4, + ["case", ["<=", 5000, ["get", "population"]], 10, ["<=", 2000, ["get", "population"]], 8, 6], + 16, + ["case", ["<=", 5000, ["get", "population"]], 20, ["<=", 2000, ["get", "population"]], 18, 16] + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": "center", + "text-offset": ["literal", [0.3, 0.2]], + "text-justify": "auto", + "text-padding": 20, + "icon-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "none", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "text-letter-spacing": 0.03 + }, + "paint": { + "text-color": "rgba(255, 255, 250, 1)", + "icon-opacity": ["step", ["zoom"], 0, 11, ["case", [">", 18, ["get", "rank"]], 1, 0], 13, 1, 14, 0], + "text-opacity": ["step", ["zoom"], 0, 11, ["case", [">", 18, ["get", "rank"]], 1, 0], 13, 1], + "text-halo-blur": 1, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": 1.5 + }, + "filter": [ + "all", + ["!in", "class", "continent", "country", "state", "city", "town", "village", "hamlet", "isolated_dwelling"] + ] + }, + { + "id": "peaks_other", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 15.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "circle_black_4", 10, "circle_black_6"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "center", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "text-variable-anchor": ["literal", ["bottom-left", "top-left", "bottom-right", "top-right"]], + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "text-color": "rgba(255, 255, 248, 1)", + "icon-opacity": 1, + "text-opacity": 1, + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-width": 0, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 10, 1.75, 15, 2] + }, + "filter": ["match", ["get", "class"], ["rocky_knoll", "saddle"], true, false] + }, + { + "id": "peaks_rank5+", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 13.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "circle_black_4", 10, "circle_black_6"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom-left", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "text-color": "rgba(255, 255, 248, 1)", + "icon-opacity": 1, + "text-opacity": 1, + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-width": 0, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 10, 1.75, 15, 2] + }, + "filter": ["all", [">=", "rank", 5], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "peaks_rank4", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 12.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "circle_black_4", 10, "circle_black_6"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom-left", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "text-color": "rgba(255, 255, 248, 1)", + "icon-opacity": 1, + "text-opacity": 1, + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-width": 0, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 10, 1.75, 15, 2] + }, + "filter": ["all", ["==", "rank", 4], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "peaks_rank3", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 11.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "circle_black_4", 10, "circle_black_6"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom-left", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "text-color": "rgba(255, 255, 248, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 8, + ["match", ["get", "class"], "alpine_peak", 1, 0], + 11, + ["match", ["get", "class"], ["alpine_peak", "main_peak"], 1, 0], + 12, + 1 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 8, + ["match", ["get", "class"], "alpine_peak", 1, 0], + 11, + ["match", ["get", "class"], ["alpine_peak", "main_peak"], 1, 0], + 12, + 1 + ], + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-width": 0, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 10, 1.75, 15, 2] + }, + "filter": ["all", ["==", "rank", 3], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "peaks_rank2", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 10.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "circle_black_4", 10, "circle_black_6"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom-left", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "text-color": "rgba(255, 255, 248, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 8, + ["match", ["get", "class"], "alpine_peak", 1, 0], + 11, + ["match", ["get", "class"], ["alpine_peak", "main_peak"], 1, 0], + 12, + 1 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 8, + ["match", ["get", "class"], "alpine_peak", 1, 0], + 11, + ["match", ["get", "class"], ["alpine_peak", "main_peak"], 1, 0], + 12, + 1 + ], + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-color": "rgba(0, 0, 0, 0)", + "icon-halo-width": 0, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 10, 1.75, 15, 2] + }, + "filter": ["all", ["==", "rank", 2], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "place_hamlet_isolated_dwelling", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 12.0, + "maxzoom": 17.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Bold"], + "text-size": [ + "interpolate", + ["cubic-bezier", 0.5, 0.1, 0.7, 1], + ["zoom"], + 4, + ["case", ["<=", 50, ["get", "population"]], 10, 8], + 16, + ["case", ["<=", 50, ["get", "population"]], 20, 18] + ], + "icon-image": ["step", ["zoom"], "circle_black_4", 12, "circle_black_6"], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": ["literal", "bottom-left"], + "text-offset": ["literal", [0.3, 0.2]], + "text-justify": "auto", + "text-padding": ["interpolate", ["linear"], ["zoom"], 10, 2, 13, 2, 14, 0], + "icon-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "none", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "text-letter-spacing": 0.03 + }, + "paint": { + "text-color": "rgba(255, 255, 250, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 11, + ["case", [">", 30, ["get", "rank"]], 1, 0], + 13, + ["case", [">", 31, ["get", "rank"]], 1, 0], + 14, + 0 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 11, + ["case", [">", 30, ["get", "rank"]], 1, 0], + 13, + ["case", [">", 31, ["get", "rank"]], 1, 0], + 14, + 1 + ], + "text-halo-blur": 1, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": 1.5 + }, + "filter": ["all", ["in", "class", "hamlet", "isolated_dwelling"]] + }, + { + "id": "place_country_exclave", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 11.0, + "maxzoom": 22.0, + "layout": { + "text-font": ["B612 Bold"], + "text-size": ["interpolate", ["linear"], ["zoom"], 1, 11, 7, 14, 11, 16, 18, 24], + "text-field": "{name:latin}", + "visibility": "visible", + "text-max-width": 10, + "text-transform": "uppercase", + "text-letter-spacing": 0.12 + }, + "paint": { + "text-color": "hsl(300,90%,80%)", + "text-opacity": 0.9, + "text-halo-blur": 1, + "text-halo-color": "rgba(16, 16, 16, 1)", + "text-halo-width": 1 + }, + "filter": ["all", ["in", "class", "country"], ["in", "iso_a2", "DE", "IT"]] + }, + { + "id": "place_village", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 7.0, + "maxzoom": 16.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Bold"], + "text-size": [ + "interpolate", + ["cubic-bezier", 0.5, 0.1, 0.7, 1], + ["zoom"], + 4, + ["case", ["<=", 3000, ["get", "population"]], 12, 10], + 16, + ["case", ["<=", 3000, ["get", "population"]], 26, 24] + ], + "icon-image": [ + "step", + ["zoom"], + "circle_black_4", + 6, + "circle_black_4", + 8, + "circle_black_6", + 10, + "circle_black_8", + 12, + "circle_black_10" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": ["literal", "bottom-left"], + "text-offset": ["literal", [0.4, 0.2]], + "text-justify": "auto", + "text-padding": 20, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "none", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "text-letter-spacing": 0.03 + }, + "paint": { + "text-color": "rgba(255, 255, 250, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 7, + ["match", ["get", "capital"], [2, 4], 1, 0], + 8, + ["case", [">", 14, ["get", "rank"]], 1, 0], + 9, + ["case", [">", 15, ["get", "rank"]], 1, 0], + 10, + ["case", [">", 18, ["get", "rank"]], 1, 0], + 11, + ["case", [">", 28, ["get", "rank"]], 1, 0], + 12, + 1, + 13, + 0 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 7, + ["match", ["get", "capital"], [2, 4], 1, 0], + 8, + ["case", [">", 14, ["get", "rank"]], 1, 0], + 9, + ["case", [">", 15, ["get", "rank"]], 1, 0], + 10, + ["case", [">", 18, ["get", "rank"]], 1, 0], + 11, + ["case", [">", 28, ["get", "rank"]], 1, 0], + 12, + 1 + ], + "text-halo-blur": 1, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": 1.5 + }, + "filter": ["all", ["==", "class", "village"]] + }, + { + "id": "peaks_rank1", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 9.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 3900, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "circle_black_4", 10, "circle_black_6"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom-left", + "icon-padding": 2, + "text-justify": "auto", + "text-padding": 10, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "icon-color": "rgba(0, 0, 0, 1)", + "text-color": "rgba(255, 255, 248, 1)", + "icon-opacity": ["step", ["zoom"], 0, 9, ["case", ["<=", 3200, ["get", "ele"]], 1, 0], 10, 1], + "text-opacity": ["step", ["zoom"], 0, 9, ["case", ["<=", 3200, ["get", "ele"]], 1, 0], 10, 1], + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-color": "rgba(255, 255, 255, 1)", + "icon-halo-width": 0, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 10, 1.75, 15, 2] + }, + "filter": ["all", ["==", "rank", 1], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "aerodrome_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "aerodrome_label", + "minzoom": 11.0, + "layout": { + "icon-size": ["interpolate", ["linear"], ["zoom"], 11, 0.7, 14, 1], + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 11, + ["match", ["get", "class"], "international", 16, "regional", 16, 12], + 14, + ["match", ["get", "class"], "international", 20, "regional", 18, 16] + ], + "icon-image": [ + "match", + ["get", "class"], + "international", + "airplane_large_white", + "regional", + "airplane_medium_white", + "other", + "airplane_small_white", + "helipad", + "helicopter_white", + "" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "icon-anchor": "center", + "text-anchor": "left", + "text-offset": ["match", ["get", "class"], "helipad", ["literal", [0.9, 0.2]], ["literal", [0.9, 0]]], + "text-justify": "center", + "text-padding": 2, + "text-transform": "none" + }, + "paint": { + "text-color": "rgba(255, 255, 250, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 11, + ["match", ["get", "class"], ["international", "regional"], 1, 0], + 12, + 1 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 11, + ["match", ["get", "class"], ["international", "regional"], 1, 0], + 12, + 1 + ], + "text-halo-blur": 1, + "icon-halo-width": 0, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 10, 1.75, 15, 2] + }, + "filter": ["all", ["!=", "class", "helipad"]] + }, + { + "id": "place_town", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 6.0, + "maxzoom": 15.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Bold"], + "text-size": [ + "interpolate", + ["cubic-bezier", 0.5, 0.1, 0.7, 1], + ["zoom"], + 4, + ["case", ["<=", 30000, ["get", "population"]], 12, 10], + 16, + ["case", ["<=", 30000, ["get", "population"]], 30, 26] + ], + "icon-image": [ + "step", + ["zoom"], + "circle_black_4", + 6, + "circle_black_6", + 8, + "circle_black_8", + 10, + "circle_black_10", + 12, + "circle_black_12" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": ["literal", "bottom-left"], + "text-offset": ["literal", [0.35, 0.1]], + "text-justify": "auto", + "text-padding": 10, + "icon-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "uppercase", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "symbol-placement": "point", + "text-letter-spacing": 0.03 + }, + "paint": { + "text-color": "rgba(255, 255, 250, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 6, + ["case", [">", 10, ["get", "rank"]], 1, ["match", ["get", "capital"], [2, 4], 1, 0]], + 8, + 1, + 12, + 0 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 6, + ["case", [">", 10, ["get", "rank"]], 1, ["match", ["get", "capital"], [2, 4], 1, 0]], + 8, + 1 + ], + "text-halo-blur": 1, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": 1.5 + }, + "filter": ["all", ["==", "class", "town"]] + }, + { + "id": "water_name_point_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "water_name", + "minzoom": 7.0, + "maxzoom": 22.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + ["match", ["get", "size"], [10, 9], 12, [8, 7], 10, 10], + 10, + ["match", ["get", "size"], [10, 9], 22, [8, 7, 6], 18, [5, 4], 16, [3], 14, [2], 12, [1], 10, 10], + 12, + ["match", ["get", "size"], [10, 9], 24, [8, 7], 22, [6, 5, 4, 3], 20, [2], 16, [1], 12, 12], + 14, + ["match", ["get", "size"], [10, 9], 28, [8, 7], 26, [6, 5, 4, 3], 24, [2], 22, [1], 14, 12], + 15, + ["match", ["get", "size"], [10, 9], 30, [8, 7], 28, [6, 5, 4, 3], 26, [2], 24, [1], 18, 18] + ], + "text-field": "{name:latin}", + "visibility": "visible", + "text-rotate": ["get", "direction"], + "text-padding": 2, + "symbol-spacing": 250, + "symbol-z-order": "auto", + "text-max-width": 20, + "symbol-placement": "point", + "text-keep-upright": true, + "text-allow-overlap": false, + "text-letter-spacing": [ + "interpolate", + ["linear"], + ["zoom"], + 7, + ["match", ["get", "size"], [10, 9, 8], 0.1, [7, 6], 0.04, [5, 4, 3], 0.02, [2], 0.01, 0.05], + 16, + ["match", ["get", "size"], [10, 9, 8], 0.7, [7, 6], 0.5, [5, 4, 3], 0.3, [2], 0.2, 0.1] + ], + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "viewport" + }, + "paint": { + "text-color": "rgba(135, 220, 255,1)", + "text-opacity": [ + "step", + ["zoom"], + 0, + 7, + ["match", ["get", "size"], [10, 9, 8], 1, 0], + 8, + ["match", ["get", "size"], [10, 9, 8, 7, 6], 1, 0], + 9, + ["match", ["get", "size"], [10, 9, 8, 7, 6, 4, 3], 1, 0], + 10, + ["match", ["get", "size"], [10, 9, 8, 7, 6, 5, 4, 3, 2], 1, 0], + 12, + ["match", ["get", "size"], [10, 9, 8, 7, 6, 5, 4, 3, 2, 1], 1, 1] + ], + "text-halo-blur": 1, + "text-halo-color": "rgba(42, 42, 56, 1)", + "text-halo-width": 1.5 + }, + "filter": ["all", ["==", "$type", "Point"], ["==", "class", "lake"]] + }, + { + "id": "park_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "park", + "minzoom": 8.0, + "maxzoom": 18.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["cubic-bezier", 0.5, 0.1, 0.7, 1], ["zoom"], 8, 14, 16, 28], + "text-field": "{name:latin}", + "visibility": "visible", + "text-padding": ["interpolate", ["linear"], ["zoom"], 10, 2, 14, 10], + "symbol-z-order": ["literal", "auto"] + }, + "paint": { + "text-color": "rgba(174, 221, 145, 1)", + "text-halo-blur": 1, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": 1.5 + }, + "filter": ["all", ["in", "class", "national_park"], ["==", "$type", "Point"]] + }, + { + "id": "area_name_massif_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "area_name", + "minzoom": 11.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 10, 14, 16, 23], + "text-field": "{name:latin}", + "visibility": "visible", + "symbol-spacing": { + "stops": [ + [12, 250], + [14, 550] + ] }, + "symbol-z-order": "auto", + "text-max-width": 99999, + "symbol-placement": "point", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.07, + "text-pitch-alignment": "viewport", + "text-ignore-placement": false, + "text-rotation-alignment": "viewport" + }, + "paint": { + "text-color": "rgba(255, 255, 250, 1)", + "text-halo-blur": 1, + "icon-halo-width": 0, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 10, 1.75, 15, 2] + }, + "filter": ["all", ["==", "$type", "Point"], ["in", "subclass", "massif"]] + }, + { + "id": "place_city", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 2.0, + "maxzoom": 13.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Bold"], + "text-size": ["interpolate", ["cubic-bezier", 0.5, 0.1, 0.7, 1], ["zoom"], 1, 12, 4, 15, 16, 40], + "icon-image": [ + "step", + ["zoom"], + "dot_circle_black_6", + 6, + "dot_circle_black_8", + 8, + "circle_circle_black_10", + 10, + "circle_circle_black_12", + 12, + "circle_circle_black_12" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": "bottom-left", + "text-offset": ["literal", [0.35, 0.1]], + "text-justify": "auto", + "text-padding": 10, + "icon-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "uppercase", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "text-letter-spacing": 0.03 + }, + "paint": { + "text-color": "rgba(255, 255, 250, 1)", + "icon-opacity": ["step", ["zoom"], 1, 11, 0], + "text-opacity": 1, + "text-halo-blur": 1, + "text-halo-color": "rgba(48, 48, 48, 1)", + "text-halo-width": 1.5 + }, + "filter": ["all", ["==", "class", "city"]] + } + ], + "metadata": { + "maptiler:template": { + "groups": [ { - "id": "place_village", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 7.0, - "maxzoom": 16.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Bold" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 4, - [ - "case", - [ - "<=", - 3000, - [ - "get", - "population" - ] - ], - 12, - 10 - ], - 16, - [ - "case", - [ - "<=", - 3000, - [ - "get", - "population" - ] - ], - 26, - 24 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_black_4", - 6, - "circle_black_4", - 8, - "circle_black_6", - 10, - "circle_black_8", - 12, - "circle_black_10" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": [ - "literal", - "bottom-left" - ], - "text-offset": [ - "literal", - [ - 0.4, - 0.2 - ] - ], - "text-justify": "auto", - "text-padding": 20, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "none", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "text-letter-spacing": 0.03 - }, - "paint": { - "text-color": "rgba(255, 255, 250, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 7, - [ - "match", - [ - "get", - "capital" - ], - [ - 2, - 4 - ], - 1, - 0 - ], - 8, - [ - "case", - [ - ">", - 14, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 9, - [ - "case", - [ - ">", - 15, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 10, - [ - "case", - [ - ">", - 18, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 11, - [ - "case", - [ - ">", - 28, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 12, - 1, - 13, - 0 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 7, - [ - "match", - [ - "get", - "capital" - ], - [ - 2, - 4 - ], - 1, - 0 - ], - 8, - [ - "case", - [ - ">", - 14, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 9, - [ - "case", - [ - ">", - 15, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 10, - [ - "case", - [ - ">", - 18, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 11, - [ - "case", - [ - ">", - 28, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 12, - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": 1.5 - }, - "filter": [ - "all", - [ - "==", - "class", - "village" - ] - ] + "id": "HTRhC5uNor6RDy5nPccLk", + "icon": "variant2", + "name": "label", + "layers": [ + "place_city", + "area_name_massif_label", + "park_label", + "water_name_point_label", + "place_town", + "aerodrome_label", + "place_village", + "place_country_exclave", + "place_hamlet_isolated_dwelling", + "place_other", + "area_name_glacier_line_label", + "area_name_glacier_point_label" + ] }, { - "id": "peaks_rank1", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 9.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 3900, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_black_4", - 10, - "circle_black_6" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom-left", - "icon-padding": 2, - "text-justify": "auto", - "text-padding": 10, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "text-color": "rgba(255, 255, 248, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 9, - [ - "case", - [ - "<=", - 3200, - [ - "get", - "ele" - ] - ], - 1, - 0 - ], - 10, - 1 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 9, - [ - "case", - [ - "<=", - 3200, - [ - "get", - "ele" - ] - ], - 1, - 0 - ], - 10, - 1 - ], - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 1.75, - 15, - 2 - ] - }, - "filter": [ - "all", - [ - "==", - "rank", - 1 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] + "id": "UZ5NoGREoXyWMKvxy0_c3", + "icon": "poi", + "name": "poi", + "layers": ["poi_rank1"] }, { - "id": "aerodrome_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "aerodrome_label", - "minzoom": 11.0, - "layout": { - "icon-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - 0.7, - 14, - 1 - ], - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - [ - "match", - [ - "get", - "class" - ], - "international", - 16, - "regional", - 16, - 12 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - "international", - 20, - "regional", - 18, - 16 - ] - ], - "icon-image": [ - "match", - [ - "get", - "class" - ], - "international", - "airplane_large_white", - "regional", - "airplane_medium_white", - "other", - "airplane_small_white", - "helipad", - "helicopter_white", - "" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "icon-anchor": "center", - "text-anchor": "left", - "text-offset": [ - "match", - [ - "get", - "class" - ], - "helipad", - [ - "literal", - [ - 0.9, - 0.2 - ] - ], - [ - "literal", - [ - 0.9, - 0 - ] - ] - ], - "text-justify": "center", - "text-padding": 2, - "text-transform": "none" - }, - "paint": { - "text-color": "rgba(255, 255, 250, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "international", - "regional" - ], - 1, - 0 - ], - 12, - 1 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "international", - "regional" - ], - 1, - 0 - ], - 12, - 1 - ], - "text-halo-blur": 1, - "icon-halo-width": 0, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 1.75, - 15, - 2 - ] - }, - "filter": [ - "all", - [ - "!=", - "class", - "helipad" - ] - ] + "id": "nY2FkLbFM-XVY_uuMY6kP", + "icon": "terrain", + "name": "mountain_peak", + "layers": ["peaks_rank1", "peaks_rank2", "peaks_rank3", "peaks_rank4", "peaks_rank5+", "peaks_other"] }, { - "id": "place_town", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 6.0, - "maxzoom": 15.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Bold" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 4, - [ - "case", - [ - "<=", - 30000, - [ - "get", - "population" - ] - ], - 12, - 10 - ], - 16, - [ - "case", - [ - "<=", - 30000, - [ - "get", - "population" - ] - ], - 30, - 26 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_black_4", - 6, - "circle_black_6", - 8, - "circle_black_8", - 10, - "circle_black_10", - 12, - "circle_black_12" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": [ - "literal", - "bottom-left" - ], - "text-offset": [ - "literal", - [ - 0.35, - 0.1 - ] - ], - "text-justify": "auto", - "text-padding": 10, - "icon-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "uppercase", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "symbol-placement": "point", - "text-letter-spacing": 0.03 - }, - "paint": { - "text-color": "rgba(255, 255, 250, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 6, - [ - "case", - [ - ">", - 10, - [ - "get", - "rank" - ] - ], - 1, - [ - "match", - [ - "get", - "capital" - ], - [ - 2, - 4 - ], - 1, - 0 - ] - ], - 8, - 1, - 12, - 0 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 6, - [ - "case", - [ - ">", - 10, - [ - "get", - "rank" - ] - ], - 1, - [ - "match", - [ - "get", - "capital" - ], - [ - 2, - 4 - ], - 1, - 0 - ] - ], - 8, - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": 1.5 - }, - "filter": [ - "all", - [ - "==", - "class", - "town" - ] - ] + "id": "rC9bGjQLn98NdUCE2ObLc", + "icon": "transport", + "name": "transportation", + "layers": [ + "ferry", + "car_ferry", + "public_transport", + "road_fill", + "road_paths", + "road_via_ferrata", + "tunnel_road_path_footway", + "tunnel_road", + "tunnel_public_transport", + "road_number", + "public_transportation_label", + "aerialway", + "transportation_label" + ] }, { - "id": "water_name_point_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "water_name", - "minzoom": 7.0, - "maxzoom": 22.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 12, - [ - 8, - 7 - ], - 10, - 10 - ], - 10, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 22, - [ - 8, - 7, - 6 - ], - 18, - [ - 5, - 4 - ], - 16, - [ - 3 - ], - 14, - [ - 2 - ], - 12, - [ - 1 - ], - 10, - 10 - ], - 12, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 24, - [ - 8, - 7 - ], - 22, - [ - 6, - 5, - 4, - 3 - ], - 20, - [ - 2 - ], - 16, - [ - 1 - ], - 12, - 12 - ], - 14, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 28, - [ - 8, - 7 - ], - 26, - [ - 6, - 5, - 4, - 3 - ], - 24, - [ - 2 - ], - 22, - [ - 1 - ], - 14, - 12 - ], - 15, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 30, - [ - 8, - 7 - ], - 28, - [ - 6, - 5, - 4, - 3 - ], - 26, - [ - 2 - ], - 24, - [ - 1 - ], - 18, - 18 - ] - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-rotate": [ - "get", - "direction" - ], - "text-padding": 2, - "symbol-spacing": 250, - "symbol-z-order": "auto", - "text-max-width": 20, - "symbol-placement": "point", - "text-keep-upright": true, - "text-allow-overlap": false, - "text-letter-spacing": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8 - ], - 0.1, - [ - 7, - 6 - ], - 0.04, - [ - 5, - 4, - 3 - ], - 0.02, - [ - 2 - ], - 0.01, - 0.05 - ], - 16, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8 - ], - 0.7, - [ - 7, - 6 - ], - 0.5, - [ - 5, - 4, - 3 - ], - 0.3, - [ - 2 - ], - 0.2, - 0.1 - ] - ], - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "viewport" - }, - "paint": { - "text-color": "rgba(135, 220, 255,1)", - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 7, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8 - ], - 1, - 0 - ], - 8, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8, - 7, - 6 - ], - 1, - 0 - ], - 9, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8, - 7, - 6, - 4, - 3 - ], - 1, - 0 - ], - 10, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8, - 7, - 6, - 5, - 4, - 3, - 2 - ], - 1, - 0 - ], - 12, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8, - 7, - 6, - 5, - 4, - 3, - 2, - 1 - ], - 1, - 1 - ] - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(42, 42, 56, 1)", - "text-halo-width": 1.5 - }, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "==", - "class", - "lake" - ] - ] + "id": "administrative", + "icon": "administrative", + "name": "boundary", + "layers": ["boundary_canton_l_label", "boundary_canton_r_label", "boundary", "boundary_disputed", "park"] }, { - "id": "park_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "park", - "minzoom": 8.0, - "maxzoom": 18.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 8, - 14, - 16, - 28 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 2, - 14, - 10 - ], - "symbol-z-order": [ - "literal", - "auto" - ] - }, - "paint": { - "text-color": "rgba(174, 221, 145, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": 1.5 - }, - "filter": [ - "all", - [ - "in", - "class", - "national_park" - ], - [ - "==", - "$type", - "Point" - ] - ] + "id": "38biI46S8IApkhroETSU0", + "icon": "terrain", + "name": "terrain", + "layers": ["spot_elevation"] }, { - "id": "area_name_massif_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "area_name", - "minzoom": 11.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 14, - 16, - 23 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "symbol-spacing": { - "stops": [ - [ - 12, - 250 - ], - [ - 14, - 550 - ] - ] - }, - "symbol-z-order": "auto", - "text-max-width": 99999, - "symbol-placement": "point", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.07, - "text-pitch-alignment": "viewport", - "text-ignore-placement": false, - "text-rotation-alignment": "viewport" - }, - "paint": { - "text-color": "rgba(255, 255, 250, 1)", - "text-halo-blur": 1, - "icon-halo-width": 0, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 1.75, - 15, - 2 - ] - }, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "in", - "subclass", - "massif" - ] - ] + "id": "rwXlmJdxx8aLmg8LxrDO7", + "icon": "water", + "name": "water", + "layers": ["water_line", "waterway_line_label"] }, { - "id": "place_city", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 2.0, - "maxzoom": 13.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Bold" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 1, - 12, - 4, - 15, - 16, - 40 - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "dot_circle_black_6", - 6, - "dot_circle_black_8", - 8, - "circle_circle_black_10", - 10, - "circle_circle_black_12", - 12, - "circle_circle_black_12" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": "bottom-left", - "text-offset": [ - "literal", - [ - 0.35, - 0.1 - ] - ], - "text-justify": "auto", - "text-padding": 10, - "icon-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "uppercase", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "text-letter-spacing": 0.03 - }, - "paint": { - "text-color": "rgba(255, 255, 250, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 1, - 11, - 0 - ], - "text-opacity": 1, - "text-halo-blur": 1, - "text-halo-color": "rgba(48, 48, 48, 1)", - "text-halo-width": 1.5 - }, - "filter": [ - "all", - [ - "==", - "class", - "city" - ] - ] + "id": "background", + "icon": "background", + "name": "Background", + "layers": ["background"] } - ], - "metadata": { - "maptiler:template": { - "groups": [ - { - "id": "HTRhC5uNor6RDy5nPccLk", - "icon": "variant2", - "name": "label", - "layers": [ - "place_city", - "area_name_massif_label", - "park_label", - "water_name_point_label", - "place_town", - "aerodrome_label", - "place_village", - "place_country_exclave", - "place_hamlet_isolated_dwelling", - "place_other", - "area_name_glacier_line_label", - "area_name_glacier_point_label" - ] - }, - { - "id": "UZ5NoGREoXyWMKvxy0_c3", - "icon": "poi", - "name": "poi", - "layers": [ - "poi_rank1" - ] - }, - { - "id": "nY2FkLbFM-XVY_uuMY6kP", - "icon": "terrain", - "name": "mountain_peak", - "layers": [ - "peaks_rank1", - "peaks_rank2", - "peaks_rank3", - "peaks_rank4", - "peaks_rank5+", - "peaks_other" - ] - }, - { - "id": "rC9bGjQLn98NdUCE2ObLc", - "icon": "transport", - "name": "transportation", - "layers": [ - "ferry", - "car_ferry", - "public_transport", - "road_fill", - "road_paths", - "road_via_ferrata", - "tunnel_road_path_footway", - "tunnel_road", - "tunnel_public_transport", - "road_number", - "public_transportation_label", - "aerialway", - "transportation_label" - ] - }, - { - "id": "administrative", - "icon": "administrative", - "name": "boundary", - "layers": [ - "boundary_canton_l_label", - "boundary_canton_r_label", - "boundary", - "boundary_disputed", - "park" - ] - }, - { - "id": "38biI46S8IApkhroETSU0", - "icon": "terrain", - "name": "terrain", - "layers": [ - "spot_elevation" - ] - }, - { - "id": "rwXlmJdxx8aLmg8LxrDO7", - "icon": "water", - "name": "water", - "layers": [ - "water_line", - "waterway_line_label" - ] - }, - { - "id": "background", - "icon": "background", - "name": "Background", - "layers": [ - "background" - ] - } - ], - "viewState": { - "mapType": "Style", - "activeBlock": "rC9bGjQLn98NdUCE2ObLc", - "toolPanelType": "Layers", - "selectedLayers": [ - "tunnel_road" - ], - "propertyPanelType": "Edit", - "editorFocusProperty": null, - "layersViewPanelType": "Verticality" - }, - "userSettings": { - "preferredViewPanelType": "Verticality" - } - }, - "ga:version": "v1.17.0", - "ga:publisher": "CI:597e6ccf-63c7-4a22-9279-940877bf6866", - "ga:branch": "master" + ], + "viewState": { + "mapType": "Style", + "activeBlock": "rC9bGjQLn98NdUCE2ObLc", + "toolPanelType": "Layers", + "selectedLayers": ["tunnel_road"], + "propertyPanelType": "Edit", + "editorFocusProperty": null, + "layersViewPanelType": "Verticality" + }, + "userSettings": { + "preferredViewPanelType": "Verticality" + } }, - "glyphs": "/map/fonts/{fontstack}/{range}.pbf", - "sprite": [ - { - "id": "default", - "url": "/map/sprites/imagery" - }, - { - "id": "babs", - "url": "/map/sprites/babs" - } - ], - "bearing": 0.0, - "pitch": 0.0, - "center": [ - 8.794609879526547, - 46.716370476991045 - ], - "zoom": 7.658885820186586, - "transition": {} -} \ No newline at end of file + "ga:version": "v1.17.0", + "ga:publisher": "CI:597e6ccf-63c7-4a22-9279-940877bf6866", + "ga:branch": "master" + }, + "glyphs": "/map/fonts/{fontstack}/{range}.pbf", + "sprite": [ + { + "id": "default", + "url": "/map/sprites/imagery" + }, + { + "id": "babs", + "url": "/map/sprites/babs" + } + ], + "bearing": 0.0, + "pitch": 0.0, + "center": [8.794609879526547, 46.716370476991045], + "zoom": 7.658885820186586, + "transition": {} +} diff --git a/ui/src/assets/map/styles/ch.swisstopo.leichte-basiskarte.vt.json b/ui/src/assets/map/styles/ch.swisstopo.leichte-basiskarte.vt.json index 97d1dae8..fe081707 100644 --- a/ui/src/assets/map/styles/ch.swisstopo.leichte-basiskarte.vt.json +++ b/ui/src/assets/map/styles/ch.swisstopo.leichte-basiskarte.vt.json @@ -1,16525 +1,6443 @@ { - "version": 8, - "id": "7ddfe552-9888-40f8-97ce-c21cbf83d5c8", - "name": "lightbasemap_v1.15.0", - "sources": { - "terrain_v1.0.0": { - "url": "https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.relief.vt/v1.0.0/tiles.json", - "type": "vector" - }, - "base_v1.0.0": { - "url": "https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.base.vt/v1.0.0/tiles.json", - "type": "vector" + "version": 8, + "id": "7ddfe552-9888-40f8-97ce-c21cbf83d5c8", + "name": "lightbasemap_v1.15.0", + "sources": { + "terrain_v1.0.0": { + "url": "https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.relief.vt/v1.0.0/tiles.json", + "type": "vector" + }, + "base_v1.0.0": { + "url": "https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.base.vt/v1.0.0/tiles.json", + "type": "vector" + } + }, + "layers": [ + { + "id": "background", + "type": "background", + "layout": { + "visibility": "visible" + }, + "paint": { + "background-color": "rgba(252, 252, 252, 1)" + } + }, + { + "id": "hillshade_grey", + "type": "fill", + "source": "terrain_v1.0.0", + "source-layer": "hillshade", + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": [ + "match", + ["get", "luminosity"], + -15, + "rgb(200,210,213)", + -14, + "rgb(203,213,216)", + -13, + "rgb(207,215,218)", + -12, + "rgb(210,218,221)", + -11, + "rgb(213,221,224)", + -10, + "rgb(217,224,226)", + -9, + "rgb(220,227,229)", + -8, + "rgb(224,230,231)", + -7, + "rgb(227,232,234)", + -6, + "rgb(231,235,237)", + -5, + "rgb(234,238,239)", + -4, + "rgb(238,241,242)", + -3, + "rgb(241,244,245)", + -2, + "rgb(245,247,247)", + -1, + "rgb(248,249,250)", + "rgb(252, 252, 252)" + ], + "fill-opacity": { + "stops": [ + [1, 0.5], + [8, 1] + ] } + }, + "filter": ["all", ["<", "luminosity", 0]] }, - "layers": [ - { - "id": "background", - "type": "background", - "layout": { - "visibility": "visible" - }, - "paint": { - "background-color": "rgba(252, 252, 252, 1)" - } - }, - { - "id": "hillshade_grey", - "type": "fill", - "source": "terrain_v1.0.0", - "source-layer": "hillshade", - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": [ - "match", - [ - "get", - "luminosity" - ], - -15, - "rgb(200,210,213)", - -14, - "rgb(203,213,216)", - -13, - "rgb(207,215,218)", - -12, - "rgb(210,218,221)", - -11, - "rgb(213,221,224)", - -10, - "rgb(217,224,226)", - -9, - "rgb(220,227,229)", - -8, - "rgb(224,230,231)", - -7, - "rgb(227,232,234)", - -6, - "rgb(231,235,237)", - -5, - "rgb(234,238,239)", - -4, - "rgb(238,241,242)", - -3, - "rgb(241,244,245)", - -2, - "rgb(245,247,247)", - -1, - "rgb(248,249,250)", - "rgb(252, 252, 252)" - ], - "fill-opacity": { - "stops": [ - [ - 1, - 0.5 - ], - [ - 8, - 1 - ] - ] - } - }, - "filter": [ - "all", - [ - "<", - "luminosity", - 0 - ] - ] - }, - { - "id": "hillshade_yellow", - "type": "fill", - "source": "terrain_v1.0.0", - "source-layer": "hillshade", - "minzoom": 6.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": "rgba(255, 217, 5, 1)", - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 6, - 0.005, - 11, - 0.01 - ] - }, - "filter": [ - "all", - [ - ">", - "luminosity", - 0 - ], - [ - "!in", - "mask", - "rock", - "ice", - "scree" - ] - ] - }, - { - "id": "scree_z17", - "type": "fill", - "source": "terrain_v1.0.0", - "source-layer": "scree", - "minzoom": 17.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - 0, - 11, - 0.2, - 14, - 0.25 - ], - "fill-pattern": [ - "match", - [ - "get", - "weight" - ], - 15, - "scree_very_large_1", - 10, - "scree_very_large_2", - 5, - "scree_very_large_3", - 1, - "scree_very_large_4", - "" - ] - } - }, - { - "id": "scree_z15", - "type": "fill", - "source": "terrain_v1.0.0", - "source-layer": "scree", - "minzoom": 15.0, - "maxzoom": 17.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - 0, - 11, - 0.2, - 14, - 0.25 - ], - "fill-pattern": [ - "match", - [ - "get", - "weight" - ], - 15, - "scree_large_1", - 10, - "scree_large_2", - 5, - "scree_large_3", - 1, - "scree_large_4", - "" - ] - } - }, - { - "id": "scree_z13", - "type": "fill", - "source": "terrain_v1.0.0", - "source-layer": "scree", - "minzoom": 13.0, - "maxzoom": 15.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - 0, - 12, - 0.2, - 14, - 0.25 - ], - "fill-pattern": [ - "match", - [ - "get", - "weight" - ], - 15, - "scree_medium_1", - 10, - "scree_medium_2", - 5, - "scree_medium_3", - 1, - "scree_medium_4", - "" - ] - } - }, - { - "id": "scree_z11", - "type": "fill", - "source": "terrain_v1.0.0", - "source-layer": "scree", - "minzoom": 11.0, - "maxzoom": 13.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - 0, - 12, - 0.2, - 14, - 0.25 - ], - "fill-pattern": [ - "match", - [ - "get", - "weight" - ], - 15, - "scree_small_1", - 10, - "scree_small_2", - 5, - "scree_small_3", - 1, - "scree_small_4", - "" - ] - } - }, - { - "id": "contour_line", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "contour_line", - "minzoom": 13.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": [ - "match", - [ - "get", - "class" - ], - [ - "ice", - "water" - ], - "rgb(0,136,208)", - [ - "scree" - ], - "rgb(0,0,0)", - "rgb(191,138,64)" - ], - "line-width": [ - "interpolate", - [ - "exponential", - 1 - ], - [ - "zoom" - ], - 12, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 13, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 14, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 1, - 0 - ], - 14.5, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 1.5, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 0.75, - 0 - ] - ], - 15, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 1.75, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 1, - 0 - ] - ], - 16.5, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 2, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 10 - ], - 0 - ], - 1, - 0 - ] - ] - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "scree", - "ice", - "water" - ], - 0.25, - 0.45 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "scree", - "ice", - "water" - ], - 0.3, - 0.55 - ] - ] - }, - "metadata": { - "maputnik:comment": "color: rgb(191,138,64)" - }, - "filter": [ - "all", - [ - "!in", - "class", - "rock", - "ice", - "water" - ] - ] - }, - { - "id": "landcover", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "landcover", - "minzoom": 5.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": [ - "match", - [ - "get", - "class" - ], - [ - "forest", - "wood" - ], - "rgb(186, 210, 172)", - [ - "ice", - "glacier" - ], - "rgb(205, 232, 244)", - [ - "wetland" - ], - "rgb(204, 229, 245)", - [ - "sand" - ], - "rgb(240, 218, 188)", - "rgb(215, 224, 209)" - ], - "fill-opacity": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 5, - 0, - 6, - [ - "match", - [ - "get", - "class" - ], - [ - "ice", - "glacier" - ], - 0.3, - 0 - ], - 10, - [ - "match", - [ - "get", - "class" - ], - [ - "ice", - "glacier" - ], - 0.2, - 0 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "ice", - "glacier" - ], - 0.2, - 0.3 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "ice", - "glacier" - ], - 0, - 0.3 - ] - ], - "fill-antialias": false - }, - "filter": [ - "any", - [ - "match", - [ - "get", - "subclass" - ], - [ - "allotments", - "forest", - "glacier", - "golf_course", - "park", - "plant_nursery", - "recreation_ground", - "scrub", - "woody_plant", - "loose_forest" - ], - true, - false - ], - [ - "case", - [ - "==", - [ - "typeof", - [ - "get", - "class" - ] - ], - "string" - ], - [ - "==", - [ - "get", - "class" - ], - "sand" - ], - false - ] - ] - }, - { - "id": "landcover_casing", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "landcover", - "minzoom": 10.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.5, - "line-color": "rgb(186, 199, 172)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 6, - 0, - 11, - 0.25, - 16, - 0.75 - ], - "line-opacity": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 12, - 0, - 14, - 1 - ] - }, - "filter": [ - "all", - [ - "in", - "subclass", - "wood", - "scrub", - "recreation_ground", - "park", - "golf_course", - "allotments", - "plant_nursery", - "forest" - ] - ] - }, - { - "id": "landcover_pt", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "landcover_pt", - "minzoom": 14, - "layout": { - "icon-size": [ - "interpolate", - [ - "exponential", - 1.6 - ], - [ - "zoom" - ], - 14, - 0.2, - 18, - 1 - ], - "text-font": [], - "icon-image": "dot_green", - "visibility": "visible", - "icon-allow-overlap": false, - "icon-pitch-alignment": "map", - "icon-ignore-placement": false, - "icon-rotation-alignment": "map" - }, - "paint": { - "icon-opacity": { - "stops": [ - [ - 14, - 0.4 - ], - [ - 18, - 0.6 - ] - ] - } - } - }, - { - "id": "landuse", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "landuse", - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": [ - "match", - [ - "get", - "class" - ], - [ - "pitch" - ], - "rgb(224,234,221)", - [ - "landfill", - "quarry" - ], - "rgb(240, 218, 188)", - [ - "cemetery", - "zoo" - ], - "rgb(215, 224, 209)", - [ - "parking" - ], - "rgb(255, 255, 255)", - "rgb(215, 224, 209)" - ], - "fill-opacity": [ - "match", - [ - "get", - "class" - ], - [ - "pitch" - ], - 1, - 0.3 - ] - }, - "filter": [ - "all", - [ - "in", - "class", - "landfill", - "cemetery", - "quarry", - "zoo", - "pitch" - ] - ] - }, - { - "id": "landuse_outline", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "landuse", - "layout": { - "visibility": "visible" - }, - "paint": { - "line-color": [ - "match", - [ - "get", - "class" - ], - [ - "pitch" - ], - "rgb(130, 130, 130)", - "rgba(186, 199, 172, 1)" - ], - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 11, - 0.25, - 16, - 0.75 - ], - "line-opacity": { - "stops": [ - [ - 14, - 0 - ], - [ - 15, - 1 - ] - ] - } - }, - "filter": [ - "all", - [ - "in", - "class", - "cemetery", - "zoo", - "pitch" - ] - ] - }, - { - "id": "water_line_intermittent", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "waterway", - "minzoom": 12.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0, - "line-color": "rgba(48, 48, 48, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 13, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - [ - "10", - "9", - "8" - ], - 3.5, - [ - "7", - "6", - "5" - ], - 2.5, - [ - "4", - "3" - ], - 1.5, - [ - "1", - "2" - ], - 1, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 3.5, - 1 - ] - ], - 16, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - "10", - 5, - "9", - 4.5, - "8", - 4, - "7", - 3.5, - [ - "6", - "5" - ], - 3, - "4", - 2.5, - "3", - 2, - "2", - 1.5, - "1", - 1, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 5, - 1.5 - ] - ], - 20, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - "10", - 10, - "9", - 9.6, - "8", - 8.9, - "7", - 8.2, - "6", - 7.5, - "5", - 6.8, - "4", - 6.1, - "3", - 5.4, - "2", - 4.7, - "1", - 4, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 10, - 4 - ] - ] - ], - "line-offset": 0, - "line-opacity": { - "stops": [ - [ - 13, - 0.25 - ], - [ - 16, - 0.35 - ] - ] - }, - "line-dasharray": { - "stops": [ - [ - 13, - [ - 0.5, - 3 - ] - ], - [ - 14, - [ - 0.75, - 4.5 - ] - ], - [ - 15, - [ - 1, - 6 - ] - ], - [ - 16, - [ - 1.25, - 7.5 - ] - ] - ] - } - }, - "filter": [ - "all", - [ - "==", - "intermittent", - 1 - ] - ] - }, - { - "id": "water_line", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "waterway", - "minzoom": 7.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0, - "line-color": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - "rgba(138, 195, 229, 1)", - 16, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - "rgba(160, 205, 236, 1)", - "rgba(140, 185, 226, 1)" - ] - ], - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 7, - 1, - 10, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - [ - "10", - "9", - "8", - "7", - "6" - ], - 1.5, - [ - "5", - "4", - "3", - "2", - "1" - ], - 1, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 1.5, - 1 - ] - ], - 13, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - [ - "10", - "9", - "8" - ], - 3.5, - [ - "7", - "6", - "5" - ], - 2.5, - [ - "4", - "3" - ], - 1.5, - [ - "1", - "2" - ], - 1, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 3.5, - 1 - ] - ], - 16, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - "10", - 5, - "9", - 4.5, - "8", - 4, - "7", - 3.5, - [ - "6", - "5" - ], - 3, - "4", - 2.5, - "3", - 2, - "2", - 1.5, - "1", - 1, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 5, - 1.5 - ] - ], - 20, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - "10", - 10, - "9", - 9.6, - "8", - 8.9, - "7", - 8.2, - "6", - 7.5, - "5", - 6.8, - "4", - 6.1, - "3", - 5.4, - "2", - 4.7, - "1", - 4, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 10, - 4 - ] - ] - ], - "line-offset": 0, - "line-opacity": 0.7 - }, - "filter": [ - "all", - [ - "!=", - "intermittent", - 1 - ], - [ - "!in", - "class", - "riverbank", - "shoreline", - "shoreline_changing_level" - ] - ] - }, - { - "id": "water_polygon", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "water", - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 4, - "rgb(209, 228, 240)", - 10, - "rgb(199, 224, 245)" - ] - } - }, - { - "id": "hachure", - "type": "fill", - "source": "terrain_v1.0.0", - "source-layer": "hachure", - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": [ - "match", - [ - "get", - "class" - ], - 1, - "rgba(32, 32, 32, 1)", - "hsl(203, 60%, 46%)" - ], - "fill-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - 0, - 11, - 0.2, - 14, - 0.25 - ], - "fill-antialias": false - } - }, - { - "id": "contour_line_water", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "contour_line", - "minzoom": 13.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgb(0,136,208)", - "line-width": [ - "interpolate", - [ - "exponential", - 1 - ], - [ - "zoom" - ], - 12, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 13, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 14, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 1, - 0 - ], - 14.5, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 1.5, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 0.75, - 0 - ] - ], - 16, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 1.75, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 1, - 0 - ] - ], - 16.5, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 2, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 10 - ], - 0 - ], - 1, - 0 - ] - ] - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "scree", - "ice", - "water" - ], - 0.25, - 0.45 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "scree", - "ice", - "water" - ], - 0.3, - 0.55 - ] - ] - }, - "filter": [ - "all", - [ - "in", - "class", - "ice", - "water" - ] - ] - }, - { - "id": "label_contour_line_20_grey", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "contour_line", - "minzoom": 16.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": 12, - "text-field": "{ele} ", - "visibility": "visible", - "text-justify": "center", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "symbol-spacing": 550, - "symbol-z-order": "auto", - "text-max-angle": 40, - "text-transform": "none", - "symbol-placement": "line", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.1, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(64,64,64, 1)", - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 12, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 16, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 0.75, - 0 - ] - ], - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, .8)", - "text-halo-width": 2 - }, - "filter": [ - "all", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - [ - "!=", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "scree" - ], - true, - false - ] - ] - }, - { - "id": "label_contour_line_20_blue", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "contour_line", - "minzoom": 16.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": 12, - "text-field": "{ele} ", - "visibility": "visible", - "text-justify": "center", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "symbol-spacing": 550, - "symbol-z-order": "auto", - "text-max-angle": 40, - "text-transform": "none", - "symbol-placement": "line", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.1, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(0,136,208, 1)", - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 12, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 16, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 0.75, - 0 - ] - ], - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, .8)", - "text-halo-width": 2 - }, - "filter": [ - "all", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - [ - "!=", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "ice", - "water" - ], - true, - false - ] - ] - }, - { - "id": "label_contour_line_20_brown", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "contour_line", - "minzoom": 16.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": 12, - "text-field": "{ele} ", - "visibility": "visible", - "text-justify": "center", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "symbol-spacing": 550, - "symbol-z-order": "auto", - "text-max-angle": 40, - "text-transform": "none", - "symbol-placement": "line", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.1, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(185,132,58, 1)", - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 12, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 16, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 0.75, - 0 - ] - ], - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, .8)", - "text-halo-width": 2 - }, - "filter": [ - "all", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - [ - "!=", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "land" - ], - true, - false - ] - ] - }, - { - "id": "label_contour_line_100_grey", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "contour_line", - "minzoom": 14.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 14, - 10.5, - 16, - 14 - ], - "text-field": "{ele} ", - "visibility": "visible", - "text-justify": "center", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "symbol-spacing": { - "stops": [ - [ - 14, - 250 - ], - [ - 16, - 450 - ] - ] - }, - "symbol-z-order": "auto", - "text-max-angle": 35, - "text-transform": "none", - "symbol-placement": "line", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.1, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(64,64,64, 1)", - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 12, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 16, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 0.75, - 0 - ] - ], - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, 0.8)", - "text-halo-width": 2 - }, - "filter": [ - "all", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "scree" - ], - true, - false - ] - ] - }, - { - "id": "label_contour_line_100_blue", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "contour_line", - "minzoom": 14.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 14, - 10.5, - 16, - 14 - ], - "text-field": "{ele} ", - "visibility": "visible", - "text-justify": "center", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "symbol-spacing": { - "stops": [ - [ - 14, - 250 - ], - [ - 16, - 450 - ] - ] - }, - "symbol-z-order": "auto", - "text-max-angle": 35, - "text-transform": "none", - "symbol-placement": "line", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.1, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(0,136,208, 1)", - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 12, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 16, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 0.75, - 0 - ] - ], - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, 0.8)", - "text-halo-width": 2 - }, - "filter": [ - "all", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "ice", - "water" - ], - true, - false - ] - ] - }, - { - "id": "label_contour_line_100_brown", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "contour_line", - "minzoom": 14.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 14, - 10.5, - 16, - 14 - ], - "text-field": "{ele} ", - "visibility": "visible", - "text-justify": "center", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "symbol-spacing": { - "stops": [ - [ - 14, - 250 - ], - [ - 16, - 450 - ] - ] - }, - "symbol-z-order": "auto", - "text-max-angle": 35, - "text-transform": "none", - "symbol-placement": "line", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.1, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(185,132,58, 1)", - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 12, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - 0.75, - 0 - ], - 16, - [ - "case", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 20 - ], - 0 - ], - 0.75, - 0 - ] - ], - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, 0.8)", - "text-halo-width": 2 - }, - "filter": [ - "all", - [ - "==", - [ - "%", - [ - "to-number", - [ - "get", - "ele" - ] - ], - 100 - ], - 0 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "land" - ], - true, - false - ] - ] - }, - { - "id": "water_outline", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "water", - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.5, - "line-color": "rgba(133, 189, 224, 1)", - "line-width": 0.5, - "line-opacity": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 0, - 0, - 8, - 1, - 14, - 0 - ] - }, - "filter": [ - "all", - [ - "!=", - "class", - "ocean" - ] - ] - }, - { - "id": "pattern_landcover_vineyard", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "landcover", - "minzoom": 13.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-opacity": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 13, - 0, - 13.1, - 0.6, - 17, - 1 - ], - "fill-pattern": "vinyard_green" - }, - "filter": [ - "all", - [ - "==", - "subclass", - "vineyard" - ] - ] - }, - { - "id": "pattern_landcover_wetlands", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "landcover", - "minzoom": 13.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": "#000000", - "fill-opacity": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 13, - 0, - 13.2, - 0.4, - 17, - 1 - ], - "fill-pattern": "wetland_blue", - "fill-antialias": true - }, - "filter": [ - "all", - [ - "==", - "class", - "wetland" - ] - ] - }, - { - "id": "pattern_landcover_orchard", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "landcover", - "minzoom": 13.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-opacity": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 13, - 0, - 13.2, - 0.8, - 17, - 1 - ], - "fill-pattern": "orchard_green" - }, - "filter": [ - "all", - [ - "==", - "subclass", - "orchard" - ] - ] - }, - { - "id": "park", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "park", - "minzoom": 7.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-color": "rgba(171, 197, 159, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 9, - 1.5, - 15, - 8, - 18, - 12 - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, - 0, - 8, - 1, - 13, - 1, - 14, - 0.6 - ] - }, - "filter": [ - "all", - [ - "in", - "class", - "national_park" - ] - ] - }, - { - "id": "boundary_disputed", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "boundary", - "minzoom": 0.0, - "layout": { - "line-cap": "square", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 1, - "line-color": { - "stops": [ - [ - 6, - "hsl(300, 55%, 80%)" - ], - [ - 9, - "hsl(315, 40%, 85%)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 2, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 1, - 0 - ], - 3, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 2, - 1 - ], - 7, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 4, - 1.5 - ], - 18, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 16, - 10 - ] - ], - "line-opacity": { - "stops": [ - [ - 13, - 1 - ], - [ - 14, - 0.7 - ] - ] - }, - "line-dasharray": [ - 1.5, - 2.5 - ] - }, - "filter": [ - "all", - [ - "in", - "admin_level", - 2, - 4 - ], - [ - "!=", - "maritime", - 1 - ], - [ - "==", - "disputed", - 1 - ], - [ - "==", - "$type", - "LineString" - ] - ] - }, - { - "id": "boundary", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "boundary", - "minzoom": 0.0, - "layout": { - "line-cap": [ - "literal", - "round" - ], - "line-join": [ - "literal", - "miter" - ], - "visibility": "visible" - }, - "paint": { - "line-blur": 1, - "line-color": { - "stops": [ - [ - 6, - "hsl(300, 55%, 80%)" - ], - [ - 9, - "hsl(315, 40%, 85%)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 2, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 1, - 0 - ], - 3, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 2, - 1 - ], - 7, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 3, - 1 - ], - 18, - [ - "match", - [ - "get", - "admin_level" - ], - 2, - 16, - 10 - ] - ], - "line-opacity": { - "stops": [ - [ - 13, - 1 - ], - [ - 14, - 0.8 - ] - ] - } - }, - "filter": [ - "all", - [ - "in", - "admin_level", - 2, - 4 - ], - [ - "!=", - "maritime", - 1 - ], - [ - "!=", - "disputed", - 1 - ], - [ - "==", - "$type", - "LineString" - ] - ] - }, - { - "id": "tunnel_public_transport", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 8, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 18, - 0.4 - ], - "line-color": { - "stops": [ - [ - 7, - "rgba(170, 170, 170, 1)" - ], - [ - 15, - "rgba(170, 170, 170, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "subclass" - ], - "rail", - 0.75, - 0 - ], - 10, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 0.75 - ], - 0.5 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 0.75, - 0.5 - ] - ], - 14, - [ - "match", - [ - "get", - "class" - ], - "transit", - 1, - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 2 - ], - 1 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 1, - 0 - ] - ], - 18, - [ - "match", - [ - "get", - "class" - ], - [ - "transit" - ], - 1.5, - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 1.5, - 2 - ] - ] - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0, - 9, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 0.8, - 0 - ], - 0 - ], - 13, - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "subway", - "funicular", - "rack_rail", - "narrow_gauge" - ], - 0.8, - 0 - ], - 14, - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "funicular", - "rack_rail", - "subway" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 0.8 - ], - 0 - ], - 14.5, - 0.8 - ], - "line-dasharray": { - "stops": [ - [ - 13, - [ - 4, - 2.5 - ] - ], - [ - 14, - [ - 6, - 3.75 - ] - ], - [ - 15, - [ - 10, - 6.25 - ] - ], - [ - 16, - [ - 14, - 8.75 - ] - ] - ] - } - }, - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "rail", - "transit", - "cable_car", - "gondola" - ], - [ - "==", - "$type", - "LineString" - ] - ] + { + "id": "hillshade_yellow", + "type": "fill", + "source": "terrain_v1.0.0", + "source-layer": "hillshade", + "minzoom": 6.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": "rgba(255, 217, 5, 1)", + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 6, 0.005, 11, 0.01] + }, + "filter": ["all", [">", "luminosity", 0], ["!in", "mask", "rock", "ice", "scree"]] + }, + { + "id": "scree_z17", + "type": "fill", + "source": "terrain_v1.0.0", + "source-layer": "scree", + "minzoom": 17.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 9, 0, 11, 0.2, 14, 0.25], + "fill-pattern": [ + "match", + ["get", "weight"], + 15, + "scree_very_large_1", + 10, + "scree_very_large_2", + 5, + "scree_very_large_3", + 1, + "scree_very_large_4", + "" + ] + } + }, + { + "id": "scree_z15", + "type": "fill", + "source": "terrain_v1.0.0", + "source-layer": "scree", + "minzoom": 15.0, + "maxzoom": 17.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 9, 0, 11, 0.2, 14, 0.25], + "fill-pattern": [ + "match", + ["get", "weight"], + 15, + "scree_large_1", + 10, + "scree_large_2", + 5, + "scree_large_3", + 1, + "scree_large_4", + "" + ] + } + }, + { + "id": "scree_z13", + "type": "fill", + "source": "terrain_v1.0.0", + "source-layer": "scree", + "minzoom": 13.0, + "maxzoom": 15.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 11, 0, 12, 0.2, 14, 0.25], + "fill-pattern": [ + "match", + ["get", "weight"], + 15, + "scree_medium_1", + 10, + "scree_medium_2", + 5, + "scree_medium_3", + 1, + "scree_medium_4", + "" + ] + } + }, + { + "id": "scree_z11", + "type": "fill", + "source": "terrain_v1.0.0", + "source-layer": "scree", + "minzoom": 11.0, + "maxzoom": 13.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 11, 0, 12, 0.2, 14, 0.25], + "fill-pattern": [ + "match", + ["get", "weight"], + 15, + "scree_small_1", + 10, + "scree_small_2", + 5, + "scree_small_3", + 1, + "scree_small_4", + "" + ] + } + }, + { + "id": "contour_line", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "contour_line", + "minzoom": 13.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": [ + "match", + ["get", "class"], + ["ice", "water"], + "rgb(0,136,208)", + ["scree"], + "rgb(0,0,0)", + "rgb(191,138,64)" + ], + "line-width": [ + "interpolate", + ["exponential", 1], + ["zoom"], + 12, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 13, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 14, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 1, 0], + 14.5, + [ + "case", + ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], + 1.5, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 0.75, 0] + ], + 15, + [ + "case", + ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], + 1.75, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 1, 0] + ], + 16.5, + [ + "case", + ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], + 2, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 10], 0], 1, 0] + ] + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 13, + ["match", ["get", "class"], ["scree", "ice", "water"], 0.25, 0.45], + 14, + ["match", ["get", "class"], ["scree", "ice", "water"], 0.3, 0.55] + ] + }, + "metadata": { + "maputnik:comment": "color: rgb(191,138,64)" + }, + "filter": ["all", ["!in", "class", "rock", "ice", "water"]] + }, + { + "id": "landcover", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "landcover", + "minzoom": 5.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": [ + "match", + ["get", "class"], + ["forest", "wood"], + "rgb(186, 210, 172)", + ["ice", "glacier"], + "rgb(205, 232, 244)", + ["wetland"], + "rgb(204, 229, 245)", + ["sand"], + "rgb(240, 218, 188)", + "rgb(215, 224, 209)" + ], + "fill-opacity": [ + "interpolate", + ["exponential", 1.5], + ["zoom"], + 5, + 0, + 6, + ["match", ["get", "class"], ["ice", "glacier"], 0.3, 0], + 10, + ["match", ["get", "class"], ["ice", "glacier"], 0.2, 0], + 11, + ["match", ["get", "class"], ["ice", "glacier"], 0.2, 0.3], + 14, + ["match", ["get", "class"], ["ice", "glacier"], 0, 0.3] + ], + "fill-antialias": false + }, + "filter": [ + "any", + [ + "match", + ["get", "subclass"], + [ + "allotments", + "forest", + "glacier", + "golf_course", + "park", + "plant_nursery", + "recreation_ground", + "scrub", + "woody_plant", + "loose_forest" + ], + true, + false + ], + ["case", ["==", ["typeof", ["get", "class"]], "string"], ["==", ["get", "class"], "sand"], false] + ] + }, + { + "id": "landcover_casing", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "landcover", + "minzoom": 10.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.5, + "line-color": "rgb(186, 199, 172)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 6, 0, 11, 0.25, 16, 0.75], + "line-opacity": ["interpolate", ["exponential", 1.5], ["zoom"], 12, 0, 14, 1] + }, + "filter": [ + "all", + [ + "in", + "subclass", + "wood", + "scrub", + "recreation_ground", + "park", + "golf_course", + "allotments", + "plant_nursery", + "forest" + ] + ] + }, + { + "id": "landcover_pt", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "landcover_pt", + "minzoom": 14, + "layout": { + "icon-size": ["interpolate", ["exponential", 1.6], ["zoom"], 14, 0.2, 18, 1], + "text-font": [], + "icon-image": "dot_green", + "visibility": "visible", + "icon-allow-overlap": false, + "icon-pitch-alignment": "map", + "icon-ignore-placement": false, + "icon-rotation-alignment": "map" + }, + "paint": { + "icon-opacity": { + "stops": [ + [14, 0.4], + [18, 0.6] + ] + } + } + }, + { + "id": "landuse", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "landuse", + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": [ + "match", + ["get", "class"], + ["pitch"], + "rgb(224,234,221)", + ["landfill", "quarry"], + "rgb(240, 218, 188)", + ["cemetery", "zoo"], + "rgb(215, 224, 209)", + ["parking"], + "rgb(255, 255, 255)", + "rgb(215, 224, 209)" + ], + "fill-opacity": ["match", ["get", "class"], ["pitch"], 1, 0.3] + }, + "filter": ["all", ["in", "class", "landfill", "cemetery", "quarry", "zoo", "pitch"]] + }, + { + "id": "landuse_outline", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "landuse", + "layout": { + "visibility": "visible" + }, + "paint": { + "line-color": ["match", ["get", "class"], ["pitch"], "rgb(130, 130, 130)", "rgba(186, 199, 172, 1)"], + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 0.25, 16, 0.75], + "line-opacity": { + "stops": [ + [14, 0], + [15, 1] + ] + } + }, + "filter": ["all", ["in", "class", "cemetery", "zoo", "pitch"]] + }, + { + "id": "water_line_intermittent", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "waterway", + "minzoom": 12.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0, + "line-color": "rgba(48, 48, 48, 1)", + "line-width": [ + "interpolate", + ["exponential", 1.5], + ["zoom"], + 13, + [ + "match", + ["to-string", ["get", "width"]], + ["10", "9", "8"], + 3.5, + ["7", "6", "5"], + 2.5, + ["4", "3"], + 1.5, + ["1", "2"], + 1, + ["match", ["get", "class"], ["river", "canal"], 3.5, 1] + ], + 16, + [ + "match", + ["to-string", ["get", "width"]], + "10", + 5, + "9", + 4.5, + "8", + 4, + "7", + 3.5, + ["6", "5"], + 3, + "4", + 2.5, + "3", + 2, + "2", + 1.5, + "1", + 1, + ["match", ["get", "class"], ["river", "canal"], 5, 1.5] + ], + 20, + [ + "match", + ["to-string", ["get", "width"]], + "10", + 10, + "9", + 9.6, + "8", + 8.9, + "7", + 8.2, + "6", + 7.5, + "5", + 6.8, + "4", + 6.1, + "3", + 5.4, + "2", + 4.7, + "1", + 4, + ["match", ["get", "class"], ["river", "canal"], 10, 4] + ] + ], + "line-offset": 0, + "line-opacity": { + "stops": [ + [13, 0.25], + [16, 0.35] + ] }, - { - "id": "tunnel_road", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 7, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, - 3, - 8, - 0.4 - ], - "line-color": { - "stops": [ - [ - 6, - "rgba(170, 170, 170, 1)" - ], - [ - 11, - "rgba(130, 130, 130, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - 1, - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1, - 0 - ] - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 1.2, - [ - "primary", - "secondary", - "tertiary", - "minor" - ], - 1, - 0 - ], - 0 - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 1.3, - [ - "primary", - "secondary", - "tertiary", - "minor" - ], - 1, - 0 - ], - 0.25 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 1.5, - [ - "primary", - "secondary", - "tertiary", - "minor" - ], - 1, - 0 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 2, - [ - "primary", - "secondary", - "tertiary", - "minor" - ], - 1.5, - 0 - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 3, - 2 - ], - 20, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 5, - 2.5 - ] - ], - "line-offset": 0, - "line-opacity": [ - "step", - [ - "zoom" - ], - [ - "match", - [ - "get", - "oneway" - ], - 2, - 0, - 1 - ], - 12, - 1 - ], - "line-dasharray": { - "stops": [ - [ - 13, - [ - 3, - 1.875 - ] - ], - [ - 14, - [ - 4, - 2.5 - ] - ], - [ - 15, - [ - 5, - 3.125 - ] - ], - [ - 16, - [ - 6, - 3.75 - ] - ] - ] - } - }, - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "!in", - "class", - "rail", - "ferry", - "car_ferry", - "transit", - "cable_car", - "chair_lift", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "path", - "footway", - "trail", - "rail", - "track", - "transit", - "via_ferrata", - "mask_terrain" - ], - [ - "==", - "$type", - "LineString" - ] - ] + "line-dasharray": { + "stops": [ + [13, [0.5, 3]], + [14, [0.75, 4.5]], + [15, [1, 6]], + [16, [1.25, 7.5]] + ] + } + }, + "filter": ["all", ["==", "intermittent", 1]] + }, + { + "id": "water_line", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "waterway", + "minzoom": 7.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0, + "line-color": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + "rgba(138, 195, 229, 1)", + 16, + ["match", ["get", "class"], ["river", "canal"], "rgba(160, 205, 236, 1)", "rgba(140, 185, 226, 1)"] + ], + "line-width": [ + "interpolate", + ["exponential", 1.5], + ["zoom"], + 7, + 1, + 10, + [ + "match", + ["to-string", ["get", "width"]], + ["10", "9", "8", "7", "6"], + 1.5, + ["5", "4", "3", "2", "1"], + 1, + ["match", ["get", "class"], ["river", "canal"], 1.5, 1] + ], + 13, + [ + "match", + ["to-string", ["get", "width"]], + ["10", "9", "8"], + 3.5, + ["7", "6", "5"], + 2.5, + ["4", "3"], + 1.5, + ["1", "2"], + 1, + ["match", ["get", "class"], ["river", "canal"], 3.5, 1] + ], + 16, + [ + "match", + ["to-string", ["get", "width"]], + "10", + 5, + "9", + 4.5, + "8", + 4, + "7", + 3.5, + ["6", "5"], + 3, + "4", + 2.5, + "3", + 2, + "2", + 1.5, + "1", + 1, + ["match", ["get", "class"], ["river", "canal"], 5, 1.5] + ], + 20, + [ + "match", + ["to-string", ["get", "width"]], + "10", + 10, + "9", + 9.6, + "8", + 8.9, + "7", + 8.2, + "6", + 7.5, + "5", + 6.8, + "4", + 6.1, + "3", + 5.4, + "2", + 4.7, + "1", + 4, + ["match", ["get", "class"], ["river", "canal"], 10, 4] + ] + ], + "line-offset": 0, + "line-opacity": 0.7 + }, + "filter": [ + "all", + ["!=", "intermittent", 1], + ["!in", "class", "riverbank", "shoreline", "shoreline_changing_level"] + ] + }, + { + "id": "water_polygon", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "water", + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": ["interpolate", ["exponential", 1.5], ["zoom"], 4, "rgb(209, 228, 240)", 10, "rgb(199, 224, 245)"] + } + }, + { + "id": "hachure", + "type": "fill", + "source": "terrain_v1.0.0", + "source-layer": "hachure", + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": ["match", ["get", "class"], 1, "rgba(32, 32, 32, 1)", "hsl(203, 60%, 46%)"], + "fill-opacity": ["interpolate", ["linear"], ["zoom"], 9, 0, 11, 0.2, 14, 0.25], + "fill-antialias": false + } + }, + { + "id": "contour_line_water", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "contour_line", + "minzoom": 13.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "rgb(0,136,208)", + "line-width": [ + "interpolate", + ["exponential", 1], + ["zoom"], + 12, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 13, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 14, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 1, 0], + 14.5, + [ + "case", + ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], + 1.5, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 0.75, 0] + ], + 16, + [ + "case", + ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], + 1.75, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 1, 0] + ], + 16.5, + [ + "case", + ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], + 2, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 10], 0], 1, 0] + ] + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 13, + ["match", ["get", "class"], ["scree", "ice", "water"], 0.25, 0.45], + 14, + ["match", ["get", "class"], ["scree", "ice", "water"], 0.3, 0.55] + ] + }, + "filter": ["all", ["in", "class", "ice", "water"]] + }, + { + "id": "label_contour_line_20_grey", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "contour_line", + "minzoom": 16.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": 12, + "text-field": "{ele} ", + "visibility": "visible", + "text-justify": "center", + "text-padding": ["interpolate", ["linear"], ["zoom"], 14, 0, 15, 12, 16, 80], + "symbol-spacing": 550, + "symbol-z-order": "auto", + "text-max-angle": 40, + "text-transform": "none", + "symbol-placement": "line", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.1, + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(64,64,64, 1)", + "text-opacity": [ + "step", + ["zoom"], + 0, + 12, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 16, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 0.75, 0] + ], + "text-halo-blur": 0.5, + "text-halo-color": "rgba(238, 238, 238, .8)", + "text-halo-width": 2 + }, + "filter": [ + "all", + ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], + ["!=", ["%", ["to-number", ["get", "ele"]], 100], 0], + ["match", ["get", "class"], ["scree"], true, false] + ] + }, + { + "id": "label_contour_line_20_blue", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "contour_line", + "minzoom": 16.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": 12, + "text-field": "{ele} ", + "visibility": "visible", + "text-justify": "center", + "text-padding": ["interpolate", ["linear"], ["zoom"], 14, 0, 15, 12, 16, 80], + "symbol-spacing": 550, + "symbol-z-order": "auto", + "text-max-angle": 40, + "text-transform": "none", + "symbol-placement": "line", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.1, + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(0,136,208, 1)", + "text-opacity": [ + "step", + ["zoom"], + 0, + 12, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 16, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 0.75, 0] + ], + "text-halo-blur": 0.5, + "text-halo-color": "rgba(238, 238, 238, .8)", + "text-halo-width": 2 + }, + "filter": [ + "all", + ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], + ["!=", ["%", ["to-number", ["get", "ele"]], 100], 0], + ["match", ["get", "class"], ["ice", "water"], true, false] + ] + }, + { + "id": "label_contour_line_20_brown", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "contour_line", + "minzoom": 16.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": 12, + "text-field": "{ele} ", + "visibility": "visible", + "text-justify": "center", + "text-padding": ["interpolate", ["linear"], ["zoom"], 14, 0, 15, 12, 16, 80], + "symbol-spacing": 550, + "symbol-z-order": "auto", + "text-max-angle": 40, + "text-transform": "none", + "symbol-placement": "line", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.1, + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(185,132,58, 1)", + "text-opacity": [ + "step", + ["zoom"], + 0, + 12, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 16, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 0.75, 0] + ], + "text-halo-blur": 0.5, + "text-halo-color": "rgba(238, 238, 238, .8)", + "text-halo-width": 2 + }, + "filter": [ + "all", + ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], + ["!=", ["%", ["to-number", ["get", "ele"]], 100], 0], + ["match", ["get", "class"], ["land"], true, false] + ] + }, + { + "id": "label_contour_line_100_grey", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "contour_line", + "minzoom": 14.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": ["interpolate", ["exponential", 2], ["zoom"], 14, 10.5, 16, 14], + "text-field": "{ele} ", + "visibility": "visible", + "text-justify": "center", + "text-padding": ["interpolate", ["linear"], ["zoom"], 14, 0, 15, 12, 16, 80], + "symbol-spacing": { + "stops": [ + [14, 250], + [16, 450] + ] }, - { - "id": "tunnel_road_path_footway", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 6.0, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(140, 140, 140, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 15, - 1.1, - 20, - 3 - ], - "line-offset": 0, - "line-opacity": { - "stops": [ - [ - 14, - 0 - ], - [ - 15, - 1 - ] - ] - }, - "line-dasharray": { - "stops": [ - [ - 14, - [ - 1, - 0.6 - ] - ], - [ - 15, - [ - 1.5, - 0.9 - ] - ], - [ - 16, - [ - 2, - 1.2 - ] - ], - [ - 17, - [ - 3, - 1.8 - ] - ], - [ - 18, - [ - 6, - 3.6 - ] - ] - ] - } - }, - "filter": [ - "all", - [ - "==", - "brunnel", - "tunnel" - ], - [ - "in", - "class", - "path", - "footway" - ], - [ - "==", - "$type", - "LineString" - ] - ] + "symbol-z-order": "auto", + "text-max-angle": 35, + "text-transform": "none", + "symbol-placement": "line", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.1, + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(64,64,64, 1)", + "text-opacity": [ + "step", + ["zoom"], + 0, + 12, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 16, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 0.75, 0] + ], + "text-halo-blur": 0.5, + "text-halo-color": "rgba(238, 238, 238, 0.8)", + "text-halo-width": 2 + }, + "filter": [ + "all", + ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], + ["match", ["get", "class"], ["scree"], true, false] + ] + }, + { + "id": "label_contour_line_100_blue", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "contour_line", + "minzoom": 14.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": ["interpolate", ["exponential", 2], ["zoom"], 14, 10.5, 16, 14], + "text-field": "{ele} ", + "visibility": "visible", + "text-justify": "center", + "text-padding": ["interpolate", ["linear"], ["zoom"], 14, 0, 15, 12, 16, 80], + "symbol-spacing": { + "stops": [ + [14, 250], + [16, 450] + ] }, - { - "id": "construct_line", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "construct", - "minzoom": 14.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "hsl(220, 10%, 67%)", - "line-width": { - "stops": [ - [ - 15, - 1 - ], - [ - 18, - 4 - ] - ] - }, - "line-opacity": { - "stops": [ - [ - 14, - 0 - ], - [ - 15, - 1 - ] - ] - } - }, - "filter": [ - "all", - [ - "==", - "class", - "lock" - ] - ] + "symbol-z-order": "auto", + "text-max-angle": 35, + "text-transform": "none", + "symbol-placement": "line", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.1, + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(0,136,208, 1)", + "text-opacity": [ + "step", + ["zoom"], + 0, + 12, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 16, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 0.75, 0] + ], + "text-halo-blur": 0.5, + "text-halo-color": "rgba(238, 238, 238, 0.8)", + "text-halo-width": 2 + }, + "filter": [ + "all", + ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], + ["match", ["get", "class"], ["ice", "water"], true, false] + ] + }, + { + "id": "label_contour_line_100_brown", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "contour_line", + "minzoom": 14.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": ["interpolate", ["exponential", 2], ["zoom"], 14, 10.5, 16, 14], + "text-field": "{ele} ", + "visibility": "visible", + "text-justify": "center", + "text-padding": ["interpolate", ["linear"], ["zoom"], 14, 0, 15, 12, 16, 80], + "symbol-spacing": { + "stops": [ + [14, 250], + [16, 450] + ] }, - { - "id": "construct", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "construct", - "minzoom": 13.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": [ - "interpolate", - [ - "exponential", - 1 - ], - [ - "zoom" - ], - 13, - [ - "match", - [ - "get", - "class" - ], - "weir", - "hsl(220, 10%, 82%)", - "hsl(220, 10%, 86%)" - ], - 17, - [ - "match", - [ - "get", - "class" - ], - "weir", - "hsl(220, 10%, 75%)", - "dam", - "hsl(220, 10%, 82%)", - "hsl(220, 10%, 86%)" - ] - ], - "fill-opacity": [ - "interpolate", - [ - "exponential", - 1 - ], - [ - "zoom" - ], - 12, - 0, - 13, - [ - "match", - [ - "get", - "class" - ], - "dam", - 1, - 0 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - "dam", - 1, - 0 - ], - 15, - 1 - ] - }, - "filter": [ - "all", - [ - "!=", - "class", - "lock" - ] - ] + "symbol-z-order": "auto", + "text-max-angle": 35, + "text-transform": "none", + "symbol-placement": "line", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.1, + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(185,132,58, 1)", + "text-opacity": [ + "step", + ["zoom"], + 0, + 12, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], 0.75, 0], + 16, + ["case", ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], 0.75, 0] + ], + "text-halo-blur": 0.5, + "text-halo-color": "rgba(238, 238, 238, 0.8)", + "text-halo-width": 2 + }, + "filter": [ + "all", + ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], + ["match", ["get", "class"], ["land"], true, false] + ] + }, + { + "id": "water_outline", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "water", + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.5, + "line-color": "rgba(133, 189, 224, 1)", + "line-width": 0.5, + "line-opacity": ["interpolate", ["exponential", 1.5], ["zoom"], 0, 0, 8, 1, 14, 0] + }, + "filter": ["all", ["!=", "class", "ocean"]] + }, + { + "id": "pattern_landcover_vineyard", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "landcover", + "minzoom": 13.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-opacity": ["interpolate", ["exponential", 2], ["zoom"], 13, 0, 13.1, 0.6, 17, 1], + "fill-pattern": "vinyard_green" + }, + "filter": ["all", ["==", "subclass", "vineyard"]] + }, + { + "id": "pattern_landcover_wetlands", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "landcover", + "minzoom": 13.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": "#000000", + "fill-opacity": ["interpolate", ["exponential", 2], ["zoom"], 13, 0, 13.2, 0.4, 17, 1], + "fill-pattern": "wetland_blue", + "fill-antialias": true + }, + "filter": ["all", ["==", "class", "wetland"]] + }, + { + "id": "pattern_landcover_orchard", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "landcover", + "minzoom": 13.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-opacity": ["interpolate", ["exponential", 2], ["zoom"], 13, 0, 13.2, 0.8, 17, 1], + "fill-pattern": "orchard_green" + }, + "filter": ["all", ["==", "subclass", "orchard"]] + }, + { + "id": "park", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "park", + "minzoom": 7.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-color": "rgba(171, 197, 159, 1)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 9, 1.5, 15, 8, 18, 12], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 7, 0, 8, 1, 13, 1, 14, 0.6] + }, + "filter": ["all", ["in", "class", "national_park"]] + }, + { + "id": "boundary_disputed", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "boundary", + "minzoom": 0.0, + "layout": { + "line-cap": "square", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": 1, + "line-color": { + "stops": [ + [6, "hsl(300, 55%, 80%)"], + [9, "hsl(315, 40%, 85%)"] + ] }, - { - "id": "aeroway_polygon_casing", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "aeroway", - "minzoom": 11.0, - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgb(190, 190, 190)", - "line-width": { - "base": 1.5, - "stops": [ - [ - 13, - 3 - ], - [ - 15, - 4 - ], - [ - 17, - 5 - ] - ] - }, - "line-opacity": 1 - }, - "filter": [ - "all", - [ - "in", - "class", - "runway", - "taxiway", - "apron", - "runway_grass" - ], - [ - "==", - "$type", - "Polygon" - ] - ] + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 2, + ["match", ["get", "admin_level"], 2, 1, 0], + 3, + ["match", ["get", "admin_level"], 2, 2, 1], + 7, + ["match", ["get", "admin_level"], 2, 4, 1.5], + 18, + ["match", ["get", "admin_level"], 2, 16, 10] + ], + "line-opacity": { + "stops": [ + [13, 1], + [14, 0.7] + ] }, - { - "id": "aeroway_line_casing", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "aeroway", - "minzoom": 11.0, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(110, 110, 110, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 11.5, - 0, - 12, - 2.3, - 15, - 11.25, - 20, - 153 - ], - "line-opacity": 1 - }, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ] - ] + "line-dasharray": [1.5, 2.5] + }, + "filter": [ + "all", + ["in", "admin_level", 2, 4], + ["!=", "maritime", 1], + ["==", "disputed", 1], + ["==", "$type", "LineString"] + ] + }, + { + "id": "boundary", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "boundary", + "minzoom": 0.0, + "layout": { + "line-cap": ["literal", "round"], + "line-join": ["literal", "miter"], + "visibility": "visible" + }, + "paint": { + "line-blur": 1, + "line-color": { + "stops": [ + [6, "hsl(300, 55%, 80%)"], + [9, "hsl(315, 40%, 85%)"] + ] }, - { - "id": "road_via_ferrata_trail", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 14.0, - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [ - 15, - 0.1 - ], - [ - 20, - 0.4 - ] - ] - }, - "line-color": { - "stops": [ - [ - 15, - "rgba(20, 20, 20, 1)" - ], - [ - 18, - "rgba(90, 90, 90, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 15, - 1.1, - 20, - 3 - ], - "line-opacity": { - "stops": [ - [ - 14, - 0 - ], - [ - 15, - 1 - ] - ] - }, - "line-dasharray": { - "stops": [ - [ - 15, - [ - 0.75, - 2 - ] - ], - [ - 16, - [ - 1.125, - 3 - ] - ], - [ - 17, - [ - 1.5, - 4 - ] - ], - [ - 18, - [ - 1.875, - 5 - ] - ] - ] - } - }, - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "filter": [ - "all", - [ - "in", - "class", - "via_ferrata", - "trail" - ], - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ], - [ - "==", - "$type", - "LineString" - ] - ] + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 2, + ["match", ["get", "admin_level"], 2, 1, 0], + 3, + ["match", ["get", "admin_level"], 2, 2, 1], + 7, + ["match", ["get", "admin_level"], 2, 3, 1], + 18, + ["match", ["get", "admin_level"], 2, 16, 10] + ], + "line-opacity": { + "stops": [ + [13, 1], + [14, 0.8] + ] + } + }, + "filter": [ + "all", + ["in", "admin_level", 2, 4], + ["!=", "maritime", 1], + ["!=", "disputed", 1], + ["==", "$type", "LineString"] + ] + }, + { + "id": "tunnel_public_transport", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 8, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], + 0.6 + ], + 0.6 + ], + 14, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], + 0.6 + ], + 0.6 + ], + 18, + 0.4 + ], + "line-color": { + "stops": [ + [7, "rgba(170, 170, 170, 1)"], + [15, "rgba(170, 170, 170, 1)"] + ] }, - { - "id": "road_path_footway", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 11.0, - "maxzoom": 22.0, - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15, - 0.1, - 20, - 0.4 - ], - "line-color": "rgba(115, 115, 115, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 13, - 0.5, - 15, - 1.1, - 20, - 3 - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - 11, - 0.5, - 0 - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "path", - "track", - "footway" - ], - 0.5, - 1 - ], - 0 - ], - 14, - 0.7, - 15, - 1 - ], - "line-dasharray": [ - "step", - [ - "zoom" - ], - [ - "literal", - [ - 6, - 2 - ] - ], - 16, - [ - "literal", - [ - 9, - 3 - ] - ], - 17, - [ - "literal", - [ - 12, - 4 - ] - ], - 18, - [ - "literal", - [ - 15, - 5 - ] - ] - ] - }, - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "filter": [ - "all", - [ - "match", - [ - "get", - "class" - ], - [ - "path", - "footway" - ], - true, - false - ], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - true, - false - ], - true - ], - [ - "==", - [ - "geometry-type" - ], - "LineString" - ] - ] + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 9, + ["match", ["get", "subclass"], "rail", 0.75, 0], + 10, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 0.75], + 0.5 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 0.75, 0.5] + ], + 14, + [ + "match", + ["get", "class"], + "transit", + 1, + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 2], + 1 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 1, 0] + ], + 18, + ["match", ["get", "class"], ["transit"], 1.5, ["match", ["get", "service"], ["yard", "siding"], 1.5, 2]] + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0, + 9, + ["match", ["get", "is_route"], 99, ["match", ["get", "class"], ["rail"], 0.8, 0], 0], + 13, + ["match", ["get", "subclass"], ["rail", "subway", "funicular", "rack_rail", "narrow_gauge"], 0.8, 0], + 14, + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "funicular", "rack_rail", "subway"], + ["match", ["get", "service"], ["yard", "siding"], 0, 0.8], + 0 + ], + 14.5, + 0.8 + ], + "line-dasharray": { + "stops": [ + [13, [4, 2.5]], + [14, [6, 3.75]], + [15, [10, 6.25]], + [16, [14, 8.75]] + ] + } + }, + "filter": [ + "all", + ["==", "brunnel", "tunnel"], + ["in", "class", "rail", "transit", "cable_car", "gondola"], + ["==", "$type", "LineString"] + ] + }, + { + "id": "tunnel_road", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 7, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": ["interpolate", ["linear"], ["zoom"], 7, 3, 8, 0.4], + "line-color": { + "stops": [ + [6, "rgba(170, 170, 170, 1)"], + [11, "rgba(130, 130, 130, 1)"] + ] }, - { - "id": "building_ln", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "building_ln", - "minzoom": 13.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": [ - "match", - [ - "get", - "class" - ], - "weir", - "rgb(20, 136, 205)", - "rgb(130, 130, 130)" - ], - "line-width": { - "stops": [ - [ - 13, - 0 - ], - [ - 16, - 2 - ], - [ - 18, - 3 - ] - ] - }, - "line-opacity": [ - "match", - [ - "get", - "class" - ], - "weir", - 0.2, - 1 - ] - }, - "filter": [ - "all", - [ - "match", - [ - "get", - "class" - ], - [ - "horse_racing", - "ski_jump", - "toboggan", - "track", - "weir" - ], - true, - false - ], - [ - "==", - [ - "geometry-type" - ], - "LineString" - ] - ] + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + ["match", ["get", "is_route"], [5, 10, 99], 1, ["match", ["get", "ramp"], 1, 1, 0]], + 10, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + 1.2, + ["primary", "secondary", "tertiary", "minor"], + 1, + 0 + ], + 0 + ], + 11, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + 1.3, + ["primary", "secondary", "tertiary", "minor"], + 1, + 0 + ], + 0.25 + ], + 13, + ["match", ["get", "class"], ["motorway", "trunk"], 1.5, ["primary", "secondary", "tertiary", "minor"], 1, 0], + 14, + ["match", ["get", "class"], ["motorway", "trunk"], 2, ["primary", "secondary", "tertiary", "minor"], 1.5, 0], + 15, + ["match", ["get", "class"], ["motorway", "trunk"], 3, 2], + 20, + ["match", ["get", "class"], ["motorway", "trunk"], 5, 2.5] + ], + "line-offset": 0, + "line-opacity": ["step", ["zoom"], ["match", ["get", "oneway"], 2, 0, 1], 12, 1], + "line-dasharray": { + "stops": [ + [13, [3, 1.875]], + [14, [4, 2.5]], + [15, [5, 3.125]], + [16, [6, 3.75]] + ] + } + }, + "filter": [ + "all", + ["==", "brunnel", "tunnel"], + [ + "!in", + "class", + "rail", + "ferry", + "car_ferry", + "transit", + "cable_car", + "chair_lift", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "path", + "footway", + "trail", + "rail", + "track", + "transit", + "via_ferrata", + "mask_terrain" + ], + ["==", "$type", "LineString"] + ] + }, + { + "id": "tunnel_road_path_footway", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 6.0, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "rgba(140, 140, 140, 1)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 15, 1.1, 20, 3], + "line-offset": 0, + "line-opacity": { + "stops": [ + [14, 0], + [15, 1] + ] }, - { - "id": "road_casing", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 7.0, - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, - 3, - 8, - 0.4, - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 11 - ], - 4, - 0.4 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - "track", - 2, - 0.4 - ], - 14, - 0.4 - ], - "line-color": [ - "interpolate", - [ - "exponential", - 1.7 - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(170, 136, 30)", - "rgb(80, 80, 80)" - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(139, 107, 63)", - "rgb(90, 90, 90)" - ] - ], - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 7, - 0, - 8, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 3 - ], - [ - "trunk" - ], - 3, - 3 - ], - 0 - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2, - 3.5 - ], - [ - "trunk" - ], - 3.5, - 3 - ], - 0 - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2, - 4 - ], - [ - "trunk" - ], - 4, - "primary", - 3.5, - "secondary", - 3.5, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2, - 0 - ] - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.5, - 4.5 - ], - [ - "trunk" - ], - 4.5, - "primary", - 4, - "secondary", - 4, - "tertiary", - 3.5, - [ - "minor", - "service" - ], - 2.75, - [ - "track", - "path", - "footway" - ], - 0.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.5, - 0 - ] - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5 - ], - "primary", - 5, - "secondary", - 4.5, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3, - [ - "track", - "path", - "footway" - ], - 0.75, - 0 - ], - [ - 11 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk", - "primary", - "secondary", - "tertiary", - "minor" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 0.75 - ], - [ - "track", - "path", - "footway" - ], - 0.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 0 - ] - ], - 13, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 3, - 6 - ], - [ - "trunk" - ], - 6, - "primary", - 5.5, - "secondary", - 5, - "tertiary", - 4.5, - [ - "minor", - "service" - ], - 3.5, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3, - 1 - ], - 3 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 3, - 6 - ], - "primary", - 4, - "secondary", - 3.75, - "tertiary", - 3.75, - [ - "minor", - "service" - ], - 3, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3, - 0.5 - ], - 3 - ], - 0 - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 4, - 7 - ], - [ - "trunk" - ], - 7, - "primary", - 6.5, - "secondary", - 6, - "tertiary", - 5, - [ - "minor", - "service" - ], - 4, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3.5, - 0.75 - ], - 3.5 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 4, - 7 - ], - "primary", - 4.5, - "secondary", - 4, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3.5, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3.5, - 0.75 - ], - 3.5 - ] - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 6.5, - 8 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 8, - 12 - ], - [ - "primary", - "primary_construction" - ], - 8, - [ - "secondary", - "secondary_construction" - ], - 7, - [ - "tertiary", - "tertiary_construction" - ], - 6, - [ - "minor", - "minor_construction", - "service", - "service_construction", - "rail", - "rail_construction" - ], - 5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 4, - 1.1 - ], - 4.5 - ], - 16, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 10, - 12 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 12, - 15 - ], - [ - "primary", - "primary_construction" - ], - 12, - [ - "secondary", - "secondary_construction" - ], - 11, - [ - "tertiary", - "tertiary_construction" - ], - 10, - [ - "minor", - "minor_construction", - "service", - "service_construction", - "rail", - "rail_construction" - ], - 9, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 8.5, - 1.1 - ], - 8 - ], - 20, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 115, - 130 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 130, - 140 - ], - [ - "primary", - "primary_construction" - ], - 120, - [ - "secondary", - "secondary_construction" - ], - 115, - [ - "tertiary", - "tertiary_construction" - ], - 110, - [ - "minor", - "minor_construction", - "service", - "service_construction", - "rail", - "rail_construction" - ], - 100, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 84, - 5 - ], - 100 - ] - ], - "line-offset": 0, - "line-opacity": 1 - }, - "metadata": { - "maputnik:comment": "casing color for motorway is brown" - }, - "filter": [ - "all", - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car", - "car_ferry", - "chair_lift", - "ferry", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "path", - "footway", - "trail", - "rail", - "transit", - "via_ferrata", - "mask_terrain" - ], - false, - true - ], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - true, - false - ], - true - ], - [ - "==", - [ - "geometry-type" - ], - "LineString" - ] - ] + "line-dasharray": { + "stops": [ + [14, [1, 0.6]], + [15, [1.5, 0.9]], + [16, [2, 1.2]], + [17, [3, 1.8]], + [18, [6, 3.6]] + ] + } + }, + "filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "path", "footway"], ["==", "$type", "LineString"]] + }, + { + "id": "construct_line", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "construct", + "minzoom": 14.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "hsl(220, 10%, 67%)", + "line-width": { + "stops": [ + [15, 1], + [18, 4] + ] }, - { - "id": "landuse_parking", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "landuse", - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": "rgba(255, 255, 255, 1)", - "fill-opacity": { - "stops": [ - [ - 14, - 0 - ], - [ - 15, - 1 - ] - ] - } - }, - "filter": [ - "all", - [ - "in", - "class", - "parking" - ] - ] + "line-opacity": { + "stops": [ + [14, 0], + [15, 1] + ] + } + }, + "filter": ["all", ["==", "class", "lock"]] + }, + { + "id": "construct", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "construct", + "minzoom": 13.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": [ + "interpolate", + ["exponential", 1], + ["zoom"], + 13, + ["match", ["get", "class"], "weir", "hsl(220, 10%, 82%)", "hsl(220, 10%, 86%)"], + 17, + ["match", ["get", "class"], "weir", "hsl(220, 10%, 75%)", "dam", "hsl(220, 10%, 82%)", "hsl(220, 10%, 86%)"] + ], + "fill-opacity": [ + "interpolate", + ["exponential", 1], + ["zoom"], + 12, + 0, + 13, + ["match", ["get", "class"], "dam", 1, 0], + 14, + ["match", ["get", "class"], "dam", 1, 0], + 15, + 1 + ] + }, + "filter": ["all", ["!=", "class", "lock"]] + }, + { + "id": "aeroway_polygon_casing", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "aeroway", + "minzoom": 11.0, + "layout": { + "line-cap": "round", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "rgb(190, 190, 190)", + "line-width": { + "base": 1.5, + "stops": [ + [13, 3], + [15, 4], + [17, 5] + ] }, - { - "id": "landuse_parking_outline", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "landuse", - "layout": { - "visibility": "visible" - }, - "paint": { - "line-color": "rgba(130, 130, 130, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 11, - 0.25, - 16, - 0.75 - ], - "line-opacity": { - "stops": [ - [ - 14, - 0 - ], - [ - 15, - 1 - ] - ] - } - }, - "filter": [ - "all", - [ - "in", - "class", - "parking" - ] - ] + "line-opacity": 1 + }, + "filter": ["all", ["in", "class", "runway", "taxiway", "apron", "runway_grass"], ["==", "$type", "Polygon"]] + }, + { + "id": "aeroway_line_casing", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "aeroway", + "minzoom": 11.0, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "rgba(110, 110, 110, 1)", + "line-width": ["interpolate", ["exponential", 2], ["zoom"], 11.5, 0, 12, 2.3, 15, 11.25, 20, 153], + "line-opacity": 1 + }, + "filter": ["all", ["==", "$type", "LineString"]] + }, + { + "id": "road_via_ferrata_trail", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 14.0, + "layout": { + "line-cap": "butt", + "line-join": "bevel", + "visibility": "visible" + }, + "paint": { + "line-blur": { + "stops": [ + [15, 0.1], + [20, 0.4] + ] }, - { - "id": "road_fill", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 7.0, - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [ - 8, - 0.4 - ], - [ - 14, - 0.1 - ] - ] - }, - "line-color": [ - "interpolate", - [ - "exponential", - 1 - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(255,230,160)", - "rgb(255,255,255)" - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(255, 224, 138)", - "rgb(255,255,255)" - ] - ], - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 7, - 0, - 8, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.5, - 2 - ], - [ - "trunk" - ], - 2, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.5, - 0 - ] - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 2.25 - ], - [ - "trunk" - ], - 2.25, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 0 - ] - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 2.75 - ], - [ - "trunk" - ], - 2.75, - "primary", - 2.5, - "secondary", - 2.5, - "tertiary", - 2, - [ - "minor", - "service" - ], - 1.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 0 - ] - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.25, - 3.25 - ], - [ - "trunk" - ], - 3.25, - "primary", - 3, - "secondary", - 3, - "tertiary", - 2.5, - [ - "minor", - "service" - ], - 1.75, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.25, - 0 - ] - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 3.75 - ], - [ - "trunk" - ], - 3.75, - "primary", - 4, - "secondary", - 3.5, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 0 - ] - ], - 13, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 4.5 - ], - [ - "trunk" - ], - 4.5, - "primary", - 4.5, - "secondary", - 4, - "tertiary", - 3.5, - [ - "minor", - "service" - ], - 2.5, - 2 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 4.5 - ], - "primary", - 3, - "secondary", - 2.75, - "tertiary", - 2.75, - [ - "minor", - "service" - ], - 2, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 0 - ] - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5.5 - ], - [ - "trunk" - ], - 5.5, - "primary", - 5.5, - "secondary", - 5, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3, - 2.5 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5.5 - ], - "primary", - 3.5, - "secondary", - 3, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2.5, - 2.5 - ] - ], - 15, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 3, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 5, - 6.5 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 6.5, - 10.5 - ], - [ - "primary", - "primary_construction" - ], - 6.5, - [ - "secondary", - "secondary_construction" - ], - 5.5, - [ - "tertiary", - "tertiary_construction" - ], - 4.5, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 3.5, - [ - "rail", - "rail_construction" - ], - 5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 1.25, - 3 - ] - ], - 16, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 6, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 8, - 10 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 10, - 13 - ], - [ - "primary", - "primary_construction" - ], - 10, - [ - "secondary", - "secondary_construction" - ], - 9, - [ - "tertiary", - "tertiary_construction" - ], - 8, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 7, - [ - "rail", - "rail_construction" - ], - 9.5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 6.5, - 6 - ] - ], - 20, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 20, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 112, - 126 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 126, - 136 - ], - [ - "primary", - "primary_construction" - ], - 117, - [ - "secondary", - "secondary_construction" - ], - 112, - [ - "tertiary", - "tertiary_construction" - ], - 107, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 97, - [ - "rail", - "rail_construction" - ], - 120, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 81, - 92 - ] - ] - ] - }, - "filter": [ - "all", - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car", - "car_ferry", - "chair_lift", - "ferry", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "path", - "footway", - "trail", - "rail", - "track", - "transit", - "via_ferrata", - "mask_terrain" - ], - false, - true - ], - [ - "match", - [ - "get", - "brunnel" - ], - [ - "bridge", - "tunnel" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - true, - false - ], - true - ], - [ - "==", - [ - "geometry-type" - ], - "LineString" - ] - ] + "line-color": { + "stops": [ + [15, "rgba(20, 20, 20, 1)"], + [18, "rgba(90, 90, 90, 1)"] + ] }, - { - "id": "aeroway_line_fill", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "aeroway", - "minzoom": 11.0, - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": [ - "match", - [ - "get", - "class" - ], - [ - "runway_grass" - ], - "rgb(224,234,221)", - "rgb(255, 255, 255)" - ], - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 11, - 0, - 12, - 2, - 15, - 10, - 20, - 150 - ], - "line-opacity": 1 - }, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ] - ] + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 15, 1.1, 20, 3], + "line-opacity": { + "stops": [ + [14, 0], + [15, 1] + ] }, - { - "id": "aeroway_polygon_fill", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "aeroway", - "minzoom": 11.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": [ - "match", - [ - "get", - "class" - ], - [ - "runway_grass" - ], - "rgb(224,234,221)", - "rgb(255, 255, 255)" - ], - "fill-opacity": 1, - "fill-antialias": true - }, - "filter": [ - "all", - [ - "in", - "class", - "runway", - "taxiway", - "apron", - "runway_grass" - ], - [ - "==", - "$type", - "Polygon" - ] - ] + "line-dasharray": { + "stops": [ + [15, [0.75, 2]], + [16, [1.125, 3]], + [17, [1.5, 4]], + [18, [1.875, 5]] + ] + } + }, + "metadata": { + "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" + }, + "filter": [ + "all", + ["in", "class", "via_ferrata", "trail"], + ["!in", "brunnel", "bridge", "tunnel"], + ["==", "$type", "LineString"] + ] + }, + { + "id": "road_path_footway", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 11.0, + "maxzoom": 22.0, + "layout": { + "line-cap": "butt", + "line-join": "bevel", + "visibility": "visible" + }, + "paint": { + "line-blur": ["interpolate", ["linear"], ["zoom"], 15, 0.1, 20, 0.4], + "line-color": "rgba(115, 115, 115, 1)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 13, 0.5, 15, 1.1, 20, 3], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 11, + ["match", ["get", "is_route"], 11, 0.5, 0], + 12, + ["match", ["get", "is_route"], 11, ["match", ["get", "class"], ["path", "track", "footway"], 0.5, 1], 0], + 14, + 0.7, + 15, + 1 + ], + "line-dasharray": [ + "step", + ["zoom"], + ["literal", [6, 2]], + 16, + ["literal", [9, 3]], + 17, + ["literal", [12, 4]], + 18, + ["literal", [15, 5]] + ] + }, + "metadata": { + "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" + }, + "filter": [ + "all", + ["match", ["get", "class"], ["path", "footway"], true, false], + [ + "match", + ["get", "brunnel"], + ["bridge", "tunnel"], + ["match", ["get", "subclass"], "covered_bridge", true, false], + true + ], + ["==", ["geometry-type"], "LineString"] + ] + }, + { + "id": "building_ln", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "building_ln", + "minzoom": 13.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": ["match", ["get", "class"], "weir", "rgb(20, 136, 205)", "rgb(130, 130, 130)"], + "line-width": { + "stops": [ + [13, 0], + [16, 2], + [18, 3] + ] }, - { - "id": "car_ferry", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 9.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(105, 187, 218, 1)", - "line-width": { - "stops": [ - [ - 8, - 0.4 - ], - [ - 14, - 1 - ], - [ - 18, - 2 - ] - ] - }, - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - 0, - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "car_ferry" - ], - 1, - 0 - ], - 12, - [ - "match", - [ - "get", - "class" - ], - [ - "car_ferry" - ], - 1, - 0 - ], - 13, - 1 - ], - "line-dasharray": { - "stops": [ - [ - 12, - [ - 6, - 2 - ] - ], - [ - 13, - [ - 9, - 3 - ] - ], - [ - 14, - [ - 12, - 4 - ] - ], - [ - 15, - [ - 15, - 5 - ] - ], - [ - 16, - [ - 18, - 6 - ] - ] - ] - } - }, - "filter": [ - "all", - [ - "==", - "class", - "car_ferry" - ] + "line-opacity": ["match", ["get", "class"], "weir", 0.2, 1] + }, + "filter": [ + "all", + ["match", ["get", "class"], ["horse_racing", "ski_jump", "toboggan", "track", "weir"], true, false], + ["==", ["geometry-type"], "LineString"] + ] + }, + { + "id": "road_casing", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 7.0, + "layout": { + "line-cap": "round", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": [ + "interpolate", + ["linear"], + ["zoom"], + 7, + 3, + 8, + 0.4, + 11, + ["match", ["get", "is_route"], [11], 4, 0.4], + 13, + ["match", ["get", "class"], "track", 2, 0.4], + 14, + 0.4 + ], + "line-color": [ + "interpolate", + ["exponential", 1.7], + ["zoom"], + 9, + ["match", ["get", "class"], ["motorway", "trunk"], "rgb(170, 136, 30)", "rgb(80, 80, 80)"], + 15, + ["match", ["get", "class"], ["motorway", "trunk"], "rgb(139, 107, 63)", "rgb(90, 90, 90)"] + ], + "line-width": [ + "interpolate", + ["exponential", 2], + ["zoom"], + 7, + 0, + 8, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 1.5, 3], ["trunk"], 3, 3], + 0 + ], + 9, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 2, 3.5], ["trunk"], 3.5, 3], + 0 + ], + 10, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2, 4], + ["trunk"], + 4, + "primary", + 3.5, + "secondary", + 3.5, + "tertiary", + 3, + ["minor", "service"], + 2.5, + 0 + ], + ["match", ["get", "ramp"], 1, 2, 0] + ], + 11, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2.5, 4.5], + ["trunk"], + 4.5, + "primary", + 4, + "secondary", + 4, + "tertiary", + 3.5, + ["minor", "service"], + 2.75, + ["track", "path", "footway"], + 0.5, + 0 + ], + ["match", ["get", "ramp"], 1, 2.5, 0] + ], + 12, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 2.75, 5], + "primary", + 5, + "secondary", + 4.5, + "tertiary", + 4, + ["minor", "service"], + 3, + ["track", "path", "footway"], + 0.75, + 0 + ], + [11], + [ + "match", + ["get", "class"], + ["motorway", "trunk", "primary", "secondary", "tertiary", "minor"], + ["match", ["get", "ramp"], 1, 2.75, 0.75], + ["track", "path", "footway"], + 0.5, + 0 + ], + ["match", ["get", "ramp"], 1, 2.75, 0] + ], + 13, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 3, 6], + ["trunk"], + 6, + "primary", + 5.5, + "secondary", + 5, + "tertiary", + 4.5, + ["minor", "service"], + 3.5, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3, 1], + 3 + ], + 11, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 3, 6], + "primary", + 4, + "secondary", + 3.75, + "tertiary", + 3.75, + ["minor", "service"], + 3, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3, 0.5], + 3 + ], + 0 + ], + 14, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 4, 7], + ["trunk"], + 7, + "primary", + 6.5, + "secondary", + 6, + "tertiary", + 5, + ["minor", "service"], + 4, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3.5, 0.75], + 3.5 + ], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 4, 7], + "primary", + 4.5, + "secondary", + 4, + "tertiary", + 4, + ["minor", "service"], + 3.5, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3.5, 0.75], + 3.5 ] + ], + 15, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 6.5, 8], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 8, 12], + ["primary", "primary_construction"], + 8, + ["secondary", "secondary_construction"], + 7, + ["tertiary", "tertiary_construction"], + 6, + ["minor", "minor_construction", "service", "service_construction", "rail", "rail_construction"], + 5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + ["match", ["get", "subclass"], "covered_bridge", 4, 1.1], + 4.5 + ], + 16, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 10, 12], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 12, 15], + ["primary", "primary_construction"], + 12, + ["secondary", "secondary_construction"], + 11, + ["tertiary", "tertiary_construction"], + 10, + ["minor", "minor_construction", "service", "service_construction", "rail", "rail_construction"], + 9, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + ["match", ["get", "subclass"], "covered_bridge", 8.5, 1.1], + 8 + ], + 20, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 115, 130], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 130, 140], + ["primary", "primary_construction"], + 120, + ["secondary", "secondary_construction"], + 115, + ["tertiary", "tertiary_construction"], + 110, + ["minor", "minor_construction", "service", "service_construction", "rail", "rail_construction"], + 100, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + ["match", ["get", "subclass"], "covered_bridge", 84, 5], + 100 + ] + ], + "line-offset": 0, + "line-opacity": 1 + }, + "metadata": { + "maputnik:comment": "casing color for motorway is brown" + }, + "filter": [ + "all", + [ + "match", + ["get", "class"], + [ + "cable_car", + "car_ferry", + "chair_lift", + "ferry", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "path", + "footway", + "trail", + "rail", + "transit", + "via_ferrata", + "mask_terrain" + ], + false, + true + ], + [ + "match", + ["get", "brunnel"], + ["bridge", "tunnel"], + ["match", ["get", "subclass"], "covered_bridge", true, false], + true + ], + ["==", ["geometry-type"], "LineString"] + ] + }, + { + "id": "landuse_parking", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "landuse", + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": "rgba(255, 255, 255, 1)", + "fill-opacity": { + "stops": [ + [14, 0], + [15, 1] + ] + } + }, + "filter": ["all", ["in", "class", "parking"]] + }, + { + "id": "landuse_parking_outline", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "landuse", + "layout": { + "visibility": "visible" + }, + "paint": { + "line-color": "rgba(130, 130, 130, 1)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 0.25, 16, 0.75], + "line-opacity": { + "stops": [ + [14, 0], + [15, 1] + ] + } + }, + "filter": ["all", ["in", "class", "parking"]] + }, + { + "id": "road_fill", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 7.0, + "layout": { + "line-cap": "round", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": { + "stops": [ + [8, 0.4], + [14, 0.1] + ] }, - { - "id": "ferry", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 12.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(105, 187, 218, 1)", - "line-width": { - "stops": [ - [ - 8, - 0.4 - ], - [ - 14, - 1 - ], - [ - 18, - 2 - ] - ] - }, - "line-opacity": { - "stops": [ - [ - 12, - 0 - ], - [ - 13, - 1 - ] - ] - }, - "line-dasharray": { - "stops": [ - [ - 12, - [ - 3, - 1 - ] - ], - [ - 13, - [ - 6, - 2 - ] - ], - [ - 14, - [ - 9, - 3 - ] - ], - [ - 15, - [ - 12, - 4 - ] - ], - [ - 16, - [ - 15, - 5 - ] - ] - ] - } - }, - "filter": [ - "all", - [ - "==", - "class", - "ferry" - ] + "line-color": [ + "interpolate", + ["exponential", 1], + ["zoom"], + 9, + ["match", ["get", "class"], ["motorway", "trunk"], "rgb(255,230,160)", "rgb(255,255,255)"], + 15, + ["match", ["get", "class"], ["motorway", "trunk"], "rgb(255, 224, 138)", "rgb(255,255,255)"] + ], + "line-width": [ + "interpolate", + ["exponential", 2], + ["zoom"], + 7, + 0, + 8, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 0.5, 2], ["trunk"], 2, 2], + ["match", ["get", "ramp"], 1, 0.5, 0] + ], + 9, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 0.75, 2.25], ["trunk"], 2.25, 2], + ["match", ["get", "ramp"], 1, 0.75, 0] + ], + 10, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 0.75, 2.75], + ["trunk"], + 2.75, + "primary", + 2.5, + "secondary", + 2.5, + "tertiary", + 2, + ["minor", "service"], + 1.5, + 0 + ], + ["match", ["get", "ramp"], 1, 0.75, 0] + ], + 11, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.25, 3.25], + ["trunk"], + 3.25, + "primary", + 3, + "secondary", + 3, + "tertiary", + 2.5, + ["minor", "service"], + 1.75, + 0 + ], + ["match", ["get", "ramp"], 1, 1.25, 0] + ], + 12, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.5, 3.75], + ["trunk"], + 3.75, + "primary", + 4, + "secondary", + 3.5, + "tertiary", + 3, + ["minor", "service"], + 2, + 0 + ], + ["match", ["get", "ramp"], 1, 1.5, 0] + ], + 13, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.75, 4.5], + ["trunk"], + 4.5, + "primary", + 4.5, + "secondary", + 4, + "tertiary", + 3.5, + ["minor", "service"], + 2.5, + 2 + ], + 11, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 1.75, 4.5], + "primary", + 3, + "secondary", + 2.75, + "tertiary", + 2.75, + ["minor", "service"], + 2, + 2 + ], + ["match", ["get", "ramp"], 1, 1.75, 0] + ], + 14, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2.75, 5.5], + ["trunk"], + 5.5, + "primary", + 5.5, + "secondary", + 5, + "tertiary", + 4, + ["minor", "service"], + 3, + 2.5 + ], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 2.75, 5.5], + "primary", + 3.5, + "secondary", + 3, + "tertiary", + 3, + ["minor", "service"], + 2.5, + 2.5 ] - }, - { - "id": "public_transport", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 8, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 18, - 0.4 - ], - "line-color": { - "stops": [ - [ - 7, - "rgba(238, 234, 234, 1)" - ], - [ - 15, - "rgba(116, 114, 114, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "subclass" - ], - "rail", - 0.75, - 0 - ], - 0 - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 0.75 - ], - 0.5 - ], - 0.5 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 0.75, - 0 - ] - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "class" - ], - "transit", - 1, - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - 2, - 1 - ], - 0 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 1, - 0 - ] - ], - 18, - [ - "match", - [ - "get", - "class" - ], - [ - "transit" - ], - 1.5, - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 1.5, - 2 - ] - ] - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0, - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 1, - 0 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 1, - 0 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail", - "funicular" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 1 - ], - 0 - ], - 0 - ], - 14.5, - 1 - ] - }, - "filter": [ - "all", - [ - "in", - "class", - "rail", - "transit" - ], - [ - "!in", - "brunnel", - "bridge", - "tunnel" - ] + ], + 15, + [ + "match", + ["get", "subclass"], + "funicular", + 3, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 5, 6.5], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 6.5, 10.5], + ["primary", "primary_construction"], + 6.5, + ["secondary", "secondary_construction"], + 5.5, + ["tertiary", "tertiary_construction"], + 4.5, + ["minor", "minor_construction", "service", "service_construction"], + 3.5, + ["rail", "rail_construction"], + 5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 1.25, + 3 ] - }, - { - "id": "sinkhole", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "spot_elevation", - "minzoom": 14.0, - "layout": { - "icon-size": 1, - "text-font": [], - "text-size": 16, - "icon-image": [ - "match", - [ - "get", - "class" - ], - "sinkhole", - "arrow_brown", - [ - "sinkhole_rock", - "sinkhole_scree" - ], - "arrow_grey", - [ - "sinkhole_ice", - "sinkhole_water" - ], - "arrow_blue", - "" - ], - "visibility": "visible", - "icon-anchor": "bottom", - "icon-offset": [ - 0, - 0 - ], - "icon-rotate": 15, - "text-anchor": "center", - "icon-padding": 30, - "icon-optional": false, - "text-optional": false, - "symbol-placement": "point", - "text-keep-upright": false, - "text-allow-overlap": false, - "text-ignore-placement": false - }, - "paint": { - "icon-color": "#000000", - "text-color": "#000000", - "icon-opacity": { - "stops": [ - [ - 14, - 0 - ], - [ - 15, - 0.6 - ] - ] - }, - "text-opacity": 1, - "text-halo-blur": 1, - "text-halo-width": 0 - }, - "filter": [ - "all", - [ - "in", - "class", - "sinkhole", - "sinkhole_rock", - "sinkhole_scree", - "sinkhole_water", - "sinkhole_ice" - ] + ], + 16, + [ + "match", + ["get", "subclass"], + "funicular", + 6, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 8, 10], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 10, 13], + ["primary", "primary_construction"], + 10, + ["secondary", "secondary_construction"], + 9, + ["tertiary", "tertiary_construction"], + 8, + ["minor", "minor_construction", "service", "service_construction"], + 7, + ["rail", "rail_construction"], + 9.5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 6.5, + 6 ] - }, - { - "id": "building_2d", - "type": "fill", - "source": "base_v1.0.0", - "source-layer": "building", - "minzoom": 13.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "fill-color": { - "stops": [ - [ - 13, - "hsl(220, 10%, 82%)" - ], - [ - 17, - "hsl(220, 10%, 75%)" - ] - ] - }, - "fill-opacity": { - "stops": [ - [ - 13, - 0 - ], - [ - 13.5, - 1 - ] - ] - } - } - }, - { - "id": "housenumber", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "housenumber", - "minzoom": 17, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 17, - 11, - 18, - 13 - ], - "text-field": [ - "get", - "housenumber" - ], - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(90, 90, 90, 1)" - } - }, - { - "id": "building_2d_casing", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "building", - "minzoom": 15.0, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-color": "hsl(220, 10%, 67%)", - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15, - 0.2, - 18, - 1.2 - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15, - 0, - 16, - 0.5, - 19, - 1 - ] - } - }, - { - "id": "lake_elevation", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "spot_elevation", - "minzoom": 12.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 10.5, - 18, - 13 - ], - "icon-image": [ - "case", - [ - "has", - "lake_depth" - ], - "arrow_line_blue", - [ - "==", - [ - "length", - [ - "to-string", - [ - "get", - "ele" - ] - ] - ], - 3 - ], - "line_blue_short", - "line_blue_long" - ], - "text-field": [ - "case", - [ - "has", - "lake_depth" - ], - [ - "concat", - [ - "get", - "ele" - ], - "\n\n", - [ - "get", - "lake_depth" - ] - ], - [ - "get", - "ele" - ] - ], - "visibility": "visible", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "center", - "text-offset": [ - "case", - [ - "has", - "lake_depth" - ], - [ - "literal", - [ - 0.35, - -0.5 - ] - ], - [ - "literal", - [ - 0, - -0.5 - ] - ] - ], - "text-justify": "center", - "icon-optional": false, - "text-optional": false, - "symbol-placement": "point", - "text-line-height": 1, - "text-keep-upright": false, - "icon-allow-overlap": true, - "text-allow-overlap": false, - "text-radial-offset": 0, - "text-pitch-alignment": "auto", - "icon-ignore-placement": true, - "text-ignore-placement": false, - "text-rotation-alignment": "auto" - }, - "paint": { - "icon-color": "#000000", - "text-color": "rgba(20, 136, 205, 1)", - "icon-opacity": 1, - "text-opacity": 1, - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, - 1, - 18, - 2 - ] - }, - "filter": [ - "all", - [ - "==", - "class", - "lake_elevation" - ] + ], + 20, + [ + "match", + ["get", "subclass"], + "funicular", + 20, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 112, 126], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 126, 136], + ["primary", "primary_construction"], + 117, + ["secondary", "secondary_construction"], + 112, + ["tertiary", "tertiary_construction"], + 107, + ["minor", "minor_construction", "service", "service_construction"], + 97, + ["rail", "rail_construction"], + 120, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 81, + 92 ] + ] + ] + }, + "filter": [ + "all", + [ + "match", + ["get", "class"], + [ + "cable_car", + "car_ferry", + "chair_lift", + "ferry", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "path", + "footway", + "trail", + "rail", + "track", + "transit", + "via_ferrata", + "mask_terrain" + ], + false, + true + ], + [ + "match", + ["get", "brunnel"], + ["bridge", "tunnel"], + ["match", ["get", "subclass"], "covered_bridge", true, false], + true + ], + ["==", ["geometry-type"], "LineString"] + ] + }, + { + "id": "aeroway_line_fill", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "aeroway", + "minzoom": 11.0, + "layout": { + "line-cap": "butt", + "line-join": "miter", + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": ["match", ["get", "class"], ["runway_grass"], "rgb(224,234,221)", "rgb(255, 255, 255)"], + "line-width": ["interpolate", ["exponential", 2], ["zoom"], 11, 0, 12, 2, 15, 10, 20, 150], + "line-opacity": 1 + }, + "filter": ["all", ["==", "$type", "LineString"]] + }, + { + "id": "aeroway_polygon_fill", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "aeroway", + "minzoom": 11.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": ["match", ["get", "class"], ["runway_grass"], "rgb(224,234,221)", "rgb(255, 255, 255)"], + "fill-opacity": 1, + "fill-antialias": true + }, + "filter": ["all", ["in", "class", "runway", "taxiway", "apron", "runway_grass"], ["==", "$type", "Polygon"]] + }, + { + "id": "car_ferry", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 9.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "rgba(105, 187, 218, 1)", + "line-width": { + "stops": [ + [8, 0.4], + [14, 1], + [18, 2] + ] }, - { - "id": "bridge-l1_road_casing", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 7.0, - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, - 3, - 8, - 0.4, - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 11 - ], - 4, - 0.4 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - "track", - 2, - 0.4 - ], - 14, - 0.4 - ], - "line-color": [ - "interpolate", - [ - "exponential", - 1.7 - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(170, 136, 30)", - "rgb(80, 80, 80)" - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(139, 107, 63)", - "rgb(90, 90, 90)" - ] - ], - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 7, - 0, - 8, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 3 - ], - [ - "trunk" - ], - 3, - 3 - ], - 0 - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2, - 3.5 - ], - [ - "trunk" - ], - 3.5, - 3 - ], - 0 - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2, - 4 - ], - [ - "trunk" - ], - 4, - "primary", - 3.5, - "secondary", - 3.5, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2, - 0 - ] - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.5, - 4.5 - ], - [ - "trunk" - ], - 4.5, - "primary", - 4, - "secondary", - 4, - "tertiary", - 3.5, - [ - "minor", - "service" - ], - 2.75, - [ - "track", - "path", - "footway" - ], - 0.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.5, - 0 - ] - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5 - ], - "primary", - 5, - "secondary", - 4.5, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3, - [ - "track", - "path", - "footway" - ], - 0.75, - 0 - ], - [ - 11 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk", - "primary", - "secondary", - "tertiary", - "minor" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 0.75 - ], - [ - "track", - "path", - "footway" - ], - 0.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 0 - ] - ], - 13, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 3, - 6 - ], - [ - "trunk" - ], - 6, - "primary", - 5.5, - "secondary", - 5, - "tertiary", - 4.5, - [ - "minor", - "service" - ], - 3.5, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3, - 1 - ], - 3 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 3, - 6 - ], - "primary", - 4, - "secondary", - 3.75, - "tertiary", - 3.75, - [ - "minor", - "service" - ], - 3, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3, - 0.5 - ], - 3 - ], - 0 - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 4, - 7 - ], - [ - "trunk" - ], - 7, - "primary", - 6.5, - "secondary", - 6, - "tertiary", - 5, - [ - "minor", - "service" - ], - 4, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3.5, - 0.75 - ], - 3.5 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 4, - 7 - ], - "primary", - 4.5, - "secondary", - 4, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3.5, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3.5, - 0.75 - ], - 3.5 - ] - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 6.5, - 8 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 8, - 12 - ], - [ - "primary", - "primary_construction" - ], - 8, - [ - "secondary", - "secondary_construction" - ], - 7, - [ - "tertiary", - "tertiary_construction" - ], - 6, - [ - "minor", - "minor_construction", - "service", - "service_construction", - "rail", - "rail_construction" - ], - 5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 4, - 1.1 - ], - 4.5 - ], - 16, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 10, - 12 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 12, - 15 - ], - [ - "primary", - "primary_construction" - ], - 12, - [ - "secondary", - "secondary_construction" - ], - 11, - [ - "tertiary", - "tertiary_construction" - ], - 10, - [ - "minor", - "minor_construction", - "service", - "service_construction", - "rail", - "rail_construction" - ], - 9, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 8.5, - 1.1 - ], - 8 - ], - 20, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 115, - 130 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 130, - 140 - ], - [ - "primary", - "primary_construction" - ], - 120, - [ - "secondary", - "secondary_construction" - ], - 115, - [ - "tertiary", - "tertiary_construction" - ], - 110, - [ - "minor", - "minor_construction", - "service", - "service_construction", - "rail", - "rail_construction" - ], - 100, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 84, - 5 - ], - 100 - ] - ], - "line-offset": 0, - "line-opacity": 1 - }, - "metadata": { - "maputnik:comment": "casing color for motorway is brown" - }, - "filter": [ - "all", - [ - "==", - "layer", - 1 - ], - [ - "!in", - "class", - "rail", - "ferry", - "path", - "track", - "footway", - "transit", - "cable_car", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "mask_terrain", - "via_ferrata" - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] - ] + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 9, + 0, + 11, + ["match", ["get", "class"], ["car_ferry"], 1, 0], + 12, + ["match", ["get", "class"], ["car_ferry"], 1, 0], + 13, + 1 + ], + "line-dasharray": { + "stops": [ + [12, [6, 2]], + [13, [9, 3]], + [14, [12, 4]], + [15, [15, 5]], + [16, [18, 6]] + ] + } + }, + "filter": ["all", ["==", "class", "car_ferry"]] + }, + { + "id": "ferry", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 12.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.4, + "line-color": "rgba(105, 187, 218, 1)", + "line-width": { + "stops": [ + [8, 0.4], + [14, 1], + [18, 2] + ] }, - { - "id": "bridge-l1_fill", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 7, - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [ - 8, - 0.4 - ], - [ - 14, - 0.1 - ] - ] - }, - "line-color": [ - "interpolate", - [ - "exponential", - 1 - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(255,230,160)", - [ - "rail", - "path", - "track", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - "rgba(243,243,246,0)", - "rgb(243,243,246)" - ], - "rgb(255,255,255)", - "rgb(243,243,246)", - "rgb(255,255,255)" - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(255, 224, 138)", - [ - "rail", - "path", - "track", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - "rgba(243,243,246,0)", - "rgb(243,243,246)" - ], - "rgb(255,255,255)" - ] - ], - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 7, - 0, - 8, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.5, - 2 - ], - [ - "trunk" - ], - 2, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.5, - 0 - ] - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 2.25 - ], - [ - "trunk" - ], - 2.25, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 0 - ] - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 2.75 - ], - [ - "trunk" - ], - 2.75, - "primary", - 2.5, - "secondary", - 2.5, - "tertiary", - 2, - [ - "minor", - "service" - ], - 1.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 0 - ] - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.25, - 3.25 - ], - [ - "trunk" - ], - 3.25, - "primary", - 3, - "secondary", - 3, - "tertiary", - 2.5, - [ - "minor", - "service" - ], - 1.75, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.25, - 0 - ] - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 3.75 - ], - [ - "trunk" - ], - 3.75, - "primary", - 4, - "secondary", - 3.5, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 0 - ] - ], - 13, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 4.5 - ], - [ - "trunk" - ], - 4.5, - "primary", - 4.5, - "secondary", - 4, - "tertiary", - 3.5, - [ - "minor", - "service" - ], - 2.5, - 2 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 4.5 - ], - "primary", - 3, - "secondary", - 2.75, - "tertiary", - 2.75, - [ - "minor", - "service" - ], - 2, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 0 - ] - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5.5 - ], - [ - "trunk" - ], - 5.5, - "primary", - 5.5, - "secondary", - 5, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3, - 2.5 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5.5 - ], - "primary", - 3.5, - "secondary", - 3, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2.5, - 2.5 - ] - ], - 15, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 3, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 5, - 6.5 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 6.5, - 10.5 - ], - [ - "primary", - "primary_construction" - ], - 6.5, - [ - "secondary", - "secondary_construction" - ], - 5.5, - [ - "tertiary", - "tertiary_construction" - ], - 4.5, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 3.5, - [ - "rail", - "rail_construction" - ], - 5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 1.25, - 3 - ] - ], - 16, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 6, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 8, - 10 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 10, - 13 - ], - [ - "primary", - "primary_construction" - ], - 10, - [ - "secondary", - "secondary_construction" - ], - 9, - [ - "tertiary", - "tertiary_construction" - ], - 8, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 7, - [ - "rail", - "rail_construction" - ], - 9.5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 6.5, - 6 - ] - ], - 20, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 20, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 112, - 126 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 126, - 136 - ], - [ - "primary", - "primary_construction" - ], - 117, - [ - "secondary", - "secondary_construction" - ], - 112, - [ - "tertiary", - "tertiary_construction" - ], - 107, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 97, - [ - "rail", - "rail_construction" - ], - 120, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 81, - 92 - ] - ] - ], - "line-opacity": 1 - }, - "filter": [ - "all", - [ - "==", - "layer", - 1 - ], - [ - "!in", - "class", - "ferry", - "cable_car", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "mask_terrain", - "via_ferrata" - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] - ] + "line-opacity": { + "stops": [ + [12, 0], + [13, 1] + ] }, - { - "id": "bridge-l1_road_track", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 14.0, - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 3, - 15, - 0.4 - ], - "line-color": { - "stops": [ - [ - 9, - "rgba(80, 80, 80, 1)" - ], - [ - 15, - "rgba(90, 90, 90, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 13, - 0.5, - 15, - 1.1, - 16, - 1.1, - 18, - 2, - 20, - 3 - ], - "line-offset": 0, - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - 11, - 0.5, - 0 - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "path", - "track", - "footway" - ], - 0.5, - 1 - ], - 0 - ], - 14, - 0.7, - 15, - 1 - ] - }, - "metadata": { - "maputnik:comment": "casing color for motorway is brown" - }, - "filter": [ - "all", - [ - "==", - "class", - "track" - ], - [ - "==", - "layer", - 1 - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] - ] + "line-dasharray": { + "stops": [ + [12, [3, 1]], + [13, [6, 2]], + [14, [9, 3]], + [15, [12, 4]], + [16, [15, 5]] + ] + } + }, + "filter": ["all", ["==", "class", "ferry"]] + }, + { + "id": "public_transport", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 8, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], + 0.6 + ], + 0.6 + ], + 14, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], + 0.6 + ], + 0.6 + ], + 18, + 0.4 + ], + "line-color": { + "stops": [ + [7, "rgba(238, 234, 234, 1)"], + [15, "rgba(116, 114, 114, 1)"] + ] }, - { - "id": "bridge-l1_road_path_footway", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 11.0, - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15, - 0.1, - 20, - 0.4 - ], - "line-color": "rgba(115, 115, 115, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 13, - 0.5, - 15, - 1.1, - 20, - 3 - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - 11, - 0.5, - 0 - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "path", - "track", - "footway" - ], - 0.5, - 1 - ], - 0 - ], - 14, - 0.7, - 15, - 1 - ], - "line-dasharray": [ - "step", - [ - "zoom" - ], - [ - "literal", - [ - 6, - 2 - ] - ], - 16, - [ - "literal", - [ - 9, - 3 - ] - ], - 17, - [ - "literal", - [ - 12, - 4 - ] - ], - 18, - [ - "literal", - [ - 15, - 5 - ] - ] - ] - }, - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "filter": [ - "all", - [ - "in", - "class", - "path", - "footway" - ], - [ - "==", - "layer", - 1 - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] - ] + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 9, + ["match", ["get", "is_route"], 99, ["match", ["get", "subclass"], "rail", 0.75, 0], 0], + 10, + [ + "match", + ["get", "is_route"], + 99, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 0.75], + 0.5 + ], + 0.5 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 0.75, 0] + ], + 14, + [ + "match", + ["get", "is_route"], + 99, + [ + "match", + ["get", "class"], + "transit", + 1, + ["rail"], + ["match", ["get", "subclass"], ["rail", "narrow_gauge", "rack_rail"], 2, 1], + 0 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 1, 0] + ], + 18, + ["match", ["get", "class"], ["transit"], 1.5, ["match", ["get", "service"], ["yard", "siding"], 1.5, 2]] + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0, + 9, + ["match", ["get", "class"], ["rail"], 1, 0], + 13, + ["match", ["get", "class"], ["rail"], 1, 0], + 14, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail", "funicular"], + ["match", ["get", "service"], ["yard", "siding"], 0, 1], + 0 + ], + 0 + ], + 14.5, + 1 + ] + }, + "filter": ["all", ["in", "class", "rail", "transit"], ["!in", "brunnel", "bridge", "tunnel"]] + }, + { + "id": "sinkhole", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "spot_elevation", + "minzoom": 14.0, + "layout": { + "icon-size": 1, + "text-font": [], + "text-size": 16, + "icon-image": [ + "match", + ["get", "class"], + "sinkhole", + "arrow_brown", + ["sinkhole_rock", "sinkhole_scree"], + "arrow_grey", + ["sinkhole_ice", "sinkhole_water"], + "arrow_blue", + "" + ], + "visibility": "visible", + "icon-anchor": "bottom", + "icon-offset": [0, 0], + "icon-rotate": 15, + "text-anchor": "center", + "icon-padding": 30, + "icon-optional": false, + "text-optional": false, + "symbol-placement": "point", + "text-keep-upright": false, + "text-allow-overlap": false, + "text-ignore-placement": false + }, + "paint": { + "icon-color": "#000000", + "text-color": "#000000", + "icon-opacity": { + "stops": [ + [14, 0], + [15, 0.6] + ] }, - { - "id": "bridge-l1_public_transport", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 10, - "layout": { - "line-cap": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 18, - 0.4 - ], - "line-color": { - "stops": [ - [ - 7, - "rgba(206, 132, 132, 1)" - ], - [ - 15, - "rgba(85, 53, 53, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "subclass" - ], - "rail", - 0.75, - 0 - ], - 0 - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 0.75 - ], - 0.5 - ], - 0.5 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 0.75, - 0 - ] - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "class" - ], - "transit", - 1, - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 2 - ], - 1 - ], - 0 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 1, - 0 - ] - ], - 18, - [ - "match", - [ - "get", - "class" - ], - [ - "transit" - ], - 1.5, - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 1.5, - 2 - ] - ] - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0, - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 1, - 0 - ], - 12, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 1, - 0 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 1, - 0 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail", - "funicular" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 1 - ], - 0 - ], - 0 - ], - 14.5, - 1 - ] - }, - "filter": [ - "all", - [ - "==", - "layer", - 1 - ], - [ - "in", - "class", - "rail", - "transit" - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] - ] + "text-opacity": 1, + "text-halo-blur": 1, + "text-halo-width": 0 + }, + "filter": [ + "all", + ["in", "class", "sinkhole", "sinkhole_rock", "sinkhole_scree", "sinkhole_water", "sinkhole_ice"] + ] + }, + { + "id": "building_2d", + "type": "fill", + "source": "base_v1.0.0", + "source-layer": "building", + "minzoom": 13.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "fill-color": { + "stops": [ + [13, "hsl(220, 10%, 82%)"], + [17, "hsl(220, 10%, 75%)"] + ] }, - { - "id": "bridge-l2_road_casing", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 7.0, - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, - 3, - 8, - 0.4, - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 11 - ], - 4, - 0.4 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - "track", - 2, - 0.4 - ], - 14, - 0.4 - ], - "line-color": [ - "interpolate", - [ - "exponential", - 1.7 - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(170, 136, 30)", - "rgb(80, 80, 80)" - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(139, 107, 63)", - "rgb(90, 90, 90)" - ] - ], - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 7, - 0, - 8, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 3 - ], - [ - "trunk" - ], - 3, - 3 - ], - 0 - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2, - 3.5 - ], - [ - "trunk" - ], - 3.5, - 3 - ], - 0 - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2, - 4 - ], - [ - "trunk" - ], - 4, - "primary", - 3.5, - "secondary", - 3.5, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2, - 0 - ] - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.5, - 4.5 - ], - [ - "trunk" - ], - 4.5, - "primary", - 4, - "secondary", - 4, - "tertiary", - 3.5, - [ - "minor", - "service" - ], - 2.75, - [ - "track", - "path", - "footway" - ], - 0.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.5, - 0 - ] - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5 - ], - "primary", - 5, - "secondary", - 4.5, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3, - [ - "track", - "path", - "footway" - ], - 0.75, - 0 - ], - [ - 11 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk", - "primary", - "secondary", - "tertiary", - "minor" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 0.75 - ], - [ - "track", - "path", - "footway" - ], - 0.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 0 - ] - ], - 13, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 3, - 6 - ], - [ - "trunk" - ], - 6, - "primary", - 5.5, - "secondary", - 5, - "tertiary", - 4.5, - [ - "minor", - "service" - ], - 3.5, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3, - 1 - ], - 3 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 3, - 6 - ], - "primary", - 4, - "secondary", - 3.75, - "tertiary", - 3.75, - [ - "minor", - "service" - ], - 3, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3, - 0.5 - ], - 3 - ], - 0 - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 4, - 7 - ], - [ - "trunk" - ], - 7, - "primary", - 6.5, - "secondary", - 6, - "tertiary", - 5, - [ - "minor", - "service" - ], - 4, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3.5, - 0.75 - ], - 3.5 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 4, - 7 - ], - "primary", - 4.5, - "secondary", - 4, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3.5, - [ - "track", - "path", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 3.5, - 0.75 - ], - 3.5 - ] - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 6.5, - 8 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 8, - 12 - ], - [ - "primary", - "primary_construction" - ], - 8, - [ - "secondary", - "secondary_construction" - ], - 7, - [ - "tertiary", - "tertiary_construction" - ], - 6, - [ - "minor", - "minor_construction", - "service", - "service_construction", - "rail", - "rail_construction" - ], - 5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 4, - 1.1 - ], - 4.5 - ], - 16, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 10, - 12 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 12, - 15 - ], - [ - "primary", - "primary_construction" - ], - 12, - [ - "secondary", - "secondary_construction" - ], - 11, - [ - "tertiary", - "tertiary_construction" - ], - 10, - [ - "minor", - "minor_construction", - "service", - "service_construction", - "rail", - "rail_construction" - ], - 9, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 8.5, - 1.1 - ], - 8 - ], - 20, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 115, - 130 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 130, - 140 - ], - [ - "primary", - "primary_construction" - ], - 120, - [ - "secondary", - "secondary_construction" - ], - 115, - [ - "tertiary", - "tertiary_construction" - ], - 110, - [ - "minor", - "minor_construction", - "service", - "service_construction", - "rail", - "rail_construction" - ], - 100, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - [ - "match", - [ - "get", - "subclass" - ], - "covered_bridge", - 84, - 5 - ], - 100 - ] - ], - "line-offset": 0, - "line-opacity": 1 - }, - "metadata": { - "maputnik:comment": "casing color for motorway is brown" - }, - "filter": [ - "all", - [ - ">", - "layer", - 1 - ], - [ - "!in", - "class", - "rail", - "ferry", - "path", - "track", - "footway", - "transit", - "cable_car", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "mask_terrain", - "via_ferrata" - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] + "fill-opacity": { + "stops": [ + [13, 0], + [13.5, 1] + ] + } + } + }, + { + "id": "housenumber", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "housenumber", + "minzoom": 17, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 17, 11, 18, 13], + "text-field": ["get", "housenumber"], + "visibility": "visible" + }, + "paint": { + "text-color": "rgba(90, 90, 90, 1)" + } + }, + { + "id": "building_2d_casing", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "building", + "minzoom": 15.0, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-color": "hsl(220, 10%, 67%)", + "line-width": ["interpolate", ["linear"], ["zoom"], 15, 0.2, 18, 1.2], + "line-opacity": ["interpolate", ["linear"], ["zoom"], 15, 0, 16, 0.5, 19, 1] + } + }, + { + "id": "lake_elevation", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "spot_elevation", + "minzoom": 12.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Italic"], + "text-size": ["interpolate", ["linear"], ["zoom"], 14, 10.5, 18, 13], + "icon-image": [ + "case", + ["has", "lake_depth"], + "arrow_line_blue", + ["==", ["length", ["to-string", ["get", "ele"]]], 3], + "line_blue_short", + "line_blue_long" + ], + "text-field": [ + "case", + ["has", "lake_depth"], + ["concat", ["get", "ele"], "\n\n", ["get", "lake_depth"]], + ["get", "ele"] + ], + "visibility": "visible", + "icon-offset": [0, 0], + "text-anchor": "center", + "text-offset": ["case", ["has", "lake_depth"], ["literal", [0.35, -0.5]], ["literal", [0, -0.5]]], + "text-justify": "center", + "icon-optional": false, + "text-optional": false, + "symbol-placement": "point", + "text-line-height": 1, + "text-keep-upright": false, + "icon-allow-overlap": true, + "text-allow-overlap": false, + "text-radial-offset": 0, + "text-pitch-alignment": "auto", + "icon-ignore-placement": true, + "text-ignore-placement": false, + "text-rotation-alignment": "auto" + }, + "paint": { + "icon-color": "#000000", + "text-color": "rgba(20, 136, 205, 1)", + "icon-opacity": 1, + "text-opacity": 1, + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 12, 1, 18, 2] + }, + "filter": ["all", ["==", "class", "lake_elevation"]] + }, + { + "id": "bridge-l1_road_casing", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 7.0, + "layout": { + "line-cap": "butt", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": [ + "interpolate", + ["linear"], + ["zoom"], + 7, + 3, + 8, + 0.4, + 11, + ["match", ["get", "is_route"], [11], 4, 0.4], + 13, + ["match", ["get", "class"], "track", 2, 0.4], + 14, + 0.4 + ], + "line-color": [ + "interpolate", + ["exponential", 1.7], + ["zoom"], + 9, + ["match", ["get", "class"], ["motorway", "trunk"], "rgb(170, 136, 30)", "rgb(80, 80, 80)"], + 15, + ["match", ["get", "class"], ["motorway", "trunk"], "rgb(139, 107, 63)", "rgb(90, 90, 90)"] + ], + "line-width": [ + "interpolate", + ["exponential", 2], + ["zoom"], + 7, + 0, + 8, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 1.5, 3], ["trunk"], 3, 3], + 0 + ], + 9, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 2, 3.5], ["trunk"], 3.5, 3], + 0 + ], + 10, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2, 4], + ["trunk"], + 4, + "primary", + 3.5, + "secondary", + 3.5, + "tertiary", + 3, + ["minor", "service"], + 2.5, + 0 + ], + ["match", ["get", "ramp"], 1, 2, 0] + ], + 11, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2.5, 4.5], + ["trunk"], + 4.5, + "primary", + 4, + "secondary", + 4, + "tertiary", + 3.5, + ["minor", "service"], + 2.75, + ["track", "path", "footway"], + 0.5, + 0 + ], + ["match", ["get", "ramp"], 1, 2.5, 0] + ], + 12, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 2.75, 5], + "primary", + 5, + "secondary", + 4.5, + "tertiary", + 4, + ["minor", "service"], + 3, + ["track", "path", "footway"], + 0.75, + 0 + ], + [11], + [ + "match", + ["get", "class"], + ["motorway", "trunk", "primary", "secondary", "tertiary", "minor"], + ["match", ["get", "ramp"], 1, 2.75, 0.75], + ["track", "path", "footway"], + 0.5, + 0 + ], + ["match", ["get", "ramp"], 1, 2.75, 0] + ], + 13, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 3, 6], + ["trunk"], + 6, + "primary", + 5.5, + "secondary", + 5, + "tertiary", + 4.5, + ["minor", "service"], + 3.5, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3, 1], + 3 + ], + 11, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 3, 6], + "primary", + 4, + "secondary", + 3.75, + "tertiary", + 3.75, + ["minor", "service"], + 3, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3, 0.5], + 3 + ], + 0 + ], + 14, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 4, 7], + ["trunk"], + 7, + "primary", + 6.5, + "secondary", + 6, + "tertiary", + 5, + ["minor", "service"], + 4, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3.5, 0.75], + 3.5 + ], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 4, 7], + "primary", + 4.5, + "secondary", + 4, + "tertiary", + 4, + ["minor", "service"], + 3.5, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3.5, 0.75], + 3.5 ] + ], + 15, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 6.5, 8], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 8, 12], + ["primary", "primary_construction"], + 8, + ["secondary", "secondary_construction"], + 7, + ["tertiary", "tertiary_construction"], + 6, + ["minor", "minor_construction", "service", "service_construction", "rail", "rail_construction"], + 5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + ["match", ["get", "subclass"], "covered_bridge", 4, 1.1], + 4.5 + ], + 16, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 10, 12], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 12, 15], + ["primary", "primary_construction"], + 12, + ["secondary", "secondary_construction"], + 11, + ["tertiary", "tertiary_construction"], + 10, + ["minor", "minor_construction", "service", "service_construction", "rail", "rail_construction"], + 9, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + ["match", ["get", "subclass"], "covered_bridge", 8.5, 1.1], + 8 + ], + 20, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 115, 130], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 130, 140], + ["primary", "primary_construction"], + 120, + ["secondary", "secondary_construction"], + 115, + ["tertiary", "tertiary_construction"], + 110, + ["minor", "minor_construction", "service", "service_construction", "rail", "rail_construction"], + 100, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + ["match", ["get", "subclass"], "covered_bridge", 84, 5], + 100 + ] + ], + "line-offset": 0, + "line-opacity": 1 + }, + "metadata": { + "maputnik:comment": "casing color for motorway is brown" + }, + "filter": [ + "all", + ["==", "layer", 1], + [ + "!in", + "class", + "rail", + "ferry", + "path", + "track", + "footway", + "transit", + "cable_car", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "mask_terrain", + "via_ferrata" + ], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "bridge-l1_fill", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 7, + "layout": { + "line-cap": "butt", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": { + "stops": [ + [8, 0.4], + [14, 0.1] + ] }, - { - "id": "bridge-l2_fill", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 7.0, - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [ - 8, - 0.4 - ], - [ - 14, - 0.1 - ] - ] - }, - "line-color": [ - "interpolate", - [ - "exponential", - 1 - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(255,230,160)", - [ - "rail", - "path", - "track", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - "rgba(243,243,246,0)", - "rgb(243,243,246)" - ], - "rgb(255,255,255)", - "rgb(243,243,246)", - "rgb(255,255,255)" - ], - 15, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - "rgb(255, 224, 138)", - [ - "rail", - "path", - "track", - "footway" - ], - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - "rgba(243,243,246,0)", - "rgb(243,243,246)" - ], - "rgb(255,255,255)" - ] - ], - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 7, - 0, - 8, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.5, - 2 - ], - [ - "trunk" - ], - 2, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.5, - 0 - ] - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 2.25 - ], - [ - "trunk" - ], - 2.25, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 0 - ] - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 2.75 - ], - [ - "trunk" - ], - 2.75, - "primary", - 2.5, - "secondary", - 2.5, - "tertiary", - 2, - [ - "minor", - "service" - ], - 1.5, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 0.75, - 0 - ] - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.25, - 3.25 - ], - [ - "trunk" - ], - 3.25, - "primary", - 3, - "secondary", - 3, - "tertiary", - 2.5, - [ - "minor", - "service" - ], - 1.75, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.25, - 0 - ] - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 3.75 - ], - [ - "trunk" - ], - 3.75, - "primary", - 4, - "secondary", - 3.5, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2, - 0 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.5, - 0 - ] - ], - 13, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 4.5 - ], - [ - "trunk" - ], - 4.5, - "primary", - 4.5, - "secondary", - 4, - "tertiary", - 3.5, - [ - "minor", - "service" - ], - 2.5, - 2 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 4.5 - ], - "primary", - 3, - "secondary", - 2.75, - "tertiary", - 2.75, - [ - "minor", - "service" - ], - 2, - 2 - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 1.75, - 0 - ] - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - [ - 5, - 6, - 7, - 8, - 10, - 99 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5.5 - ], - [ - "trunk" - ], - 5.5, - "primary", - 5.5, - "secondary", - 5, - "tertiary", - 4, - [ - "minor", - "service" - ], - 3, - 2.5 - ], - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 2.75, - 5.5 - ], - "primary", - 3.5, - "secondary", - 3, - "tertiary", - 3, - [ - "minor", - "service" - ], - 2.5, - 2.5 - ] - ], - 15, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 3, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 5, - 6.5 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 6.5, - 10.5 - ], - [ - "primary", - "primary_construction" - ], - 6.5, - [ - "secondary", - "secondary_construction" - ], - 5.5, - [ - "tertiary", - "tertiary_construction" - ], - 4.5, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 3.5, - [ - "rail", - "rail_construction" - ], - 5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 1.25, - 3 - ] - ], - 16, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 6, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 8, - 10 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 10, - 13 - ], - [ - "primary", - "primary_construction" - ], - 10, - [ - "secondary", - "secondary_construction" - ], - 9, - [ - "tertiary", - "tertiary_construction" - ], - 8, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 7, - [ - "rail", - "rail_construction" - ], - 9.5, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 6.5, - 6 - ] - ], - 20, - [ - "match", - [ - "get", - "subclass" - ], - "funicular", - 20, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "motorway_construction" - ], - [ - "match", - [ - "get", - "ramp" - ], - 1, - 112, - 126 - ], - [ - "trunk", - "trunk_construction" - ], - [ - "match", - [ - "get", - "oneway" - ], - 1, - 126, - 136 - ], - [ - "primary", - "primary_construction" - ], - 117, - [ - "secondary", - "secondary_construction" - ], - 112, - [ - "tertiary", - "tertiary_construction" - ], - 107, - [ - "minor", - "minor_construction", - "service", - "service_construction" - ], - 97, - [ - "rail", - "rail_construction" - ], - 120, - [ - "track", - "track_construction", - "path", - "path_construction", - "footway", - "footway_construction", - "transit", - "transit_construction" - ], - 81, - 92 - ] - ] - ], - "line-opacity": 1 - }, - "filter": [ - "all", - [ - ">", - "layer", - 1 - ], - [ - "!in", - "class", - "ferry", - "cable_car", - "gondola", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor", - "mask_terrain", - "via_ferrata" - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] + "line-color": [ + "interpolate", + ["exponential", 1], + ["zoom"], + 9, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + "rgb(255,230,160)", + ["rail", "path", "track", "footway"], + ["match", ["get", "subclass"], "funicular", "rgba(243,243,246,0)", "rgb(243,243,246)"], + "rgb(255,255,255)", + "rgb(243,243,246)", + "rgb(255,255,255)" + ], + 15, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + "rgb(255, 224, 138)", + ["rail", "path", "track", "footway"], + ["match", ["get", "subclass"], "funicular", "rgba(243,243,246,0)", "rgb(243,243,246)"], + "rgb(255,255,255)" + ] + ], + "line-width": [ + "interpolate", + ["exponential", 2], + ["zoom"], + 7, + 0, + 8, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 0.5, 2], ["trunk"], 2, 2], + ["match", ["get", "ramp"], 1, 0.5, 0] + ], + 9, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 0.75, 2.25], ["trunk"], 2.25, 2], + ["match", ["get", "ramp"], 1, 0.75, 0] + ], + 10, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 0.75, 2.75], + ["trunk"], + 2.75, + "primary", + 2.5, + "secondary", + 2.5, + "tertiary", + 2, + ["minor", "service"], + 1.5, + 0 + ], + ["match", ["get", "ramp"], 1, 0.75, 0] + ], + 11, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.25, 3.25], + ["trunk"], + 3.25, + "primary", + 3, + "secondary", + 3, + "tertiary", + 2.5, + ["minor", "service"], + 1.75, + 0 + ], + ["match", ["get", "ramp"], 1, 1.25, 0] + ], + 12, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.5, 3.75], + ["trunk"], + 3.75, + "primary", + 4, + "secondary", + 3.5, + "tertiary", + 3, + ["minor", "service"], + 2, + 0 + ], + ["match", ["get", "ramp"], 1, 1.5, 0] + ], + 13, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.75, 4.5], + ["trunk"], + 4.5, + "primary", + 4.5, + "secondary", + 4, + "tertiary", + 3.5, + ["minor", "service"], + 2.5, + 2 + ], + 11, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 1.75, 4.5], + "primary", + 3, + "secondary", + 2.75, + "tertiary", + 2.75, + ["minor", "service"], + 2, + 2 + ], + ["match", ["get", "ramp"], 1, 1.75, 0] + ], + 14, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2.75, 5.5], + ["trunk"], + 5.5, + "primary", + 5.5, + "secondary", + 5, + "tertiary", + 4, + ["minor", "service"], + 3, + 2.5 + ], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 2.75, 5.5], + "primary", + 3.5, + "secondary", + 3, + "tertiary", + 3, + ["minor", "service"], + 2.5, + 2.5 ] - }, - { - "id": "bridge-l2_road_track", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 14.0, - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 3, - 15, - 0.4 - ], - "line-color": { - "stops": [ - [ - 9, - "rgba(80, 80, 80, 1)" - ], - [ - 15, - "rgba(90, 90, 90, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "exponential", - 2 - ], - [ - "zoom" - ], - 13, - 0.5, - 15, - 1.1, - 16, - 1.1, - 18, - 2, - 20, - 3 - ], - "line-offset": 0, - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - 11, - 0.5, - 0 - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "path", - "track", - "footway" - ], - 0.5, - 1 - ], - 0 - ], - 14, - 0.7, - 15, - 1 - ] - }, - "metadata": { - "maputnik:comment": "casing color for motorway is brown" - }, - "filter": [ - "all", - [ - ">", - "layer", - 1 - ], - [ - "==", - "class", - "track" - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] + ], + 15, + [ + "match", + ["get", "subclass"], + "funicular", + 3, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 5, 6.5], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 6.5, 10.5], + ["primary", "primary_construction"], + 6.5, + ["secondary", "secondary_construction"], + 5.5, + ["tertiary", "tertiary_construction"], + 4.5, + ["minor", "minor_construction", "service", "service_construction"], + 3.5, + ["rail", "rail_construction"], + 5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 1.25, + 3 ] - }, - { - "id": "bridge-l2_road_path_footway", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 11.0, - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15, - 0.1, - 20, - 0.4 - ], - "line-color": "rgba(115, 115, 115, 1)", - "line-width": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 13, - 0.5, - 15, - 1.1, - 20, - 3 - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - [ - "match", - [ - "get", - "is_route" - ], - 11, - 0.5, - 0 - ], - 12, - [ - "match", - [ - "get", - "is_route" - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "path", - "track", - "footway" - ], - 0.5, - 1 - ], - 0 - ], - 14, - 0.7, - 15, - 1 - ], - "line-dasharray": [ - "step", - [ - "zoom" - ], - [ - "literal", - [ - 6, - 2 - ] - ], - 16, - [ - "literal", - [ - 9, - 3 - ] - ], - 17, - [ - "literal", - [ - 12, - 4 - ] - ], - 18, - [ - "literal", - [ - 15, - 5 - ] - ] - ] - }, - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "filter": [ - "all", - [ - ">", - "layer", - 1 - ], - [ - "in", - "class", - "path", - "footway" - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] + ], + 16, + [ + "match", + ["get", "subclass"], + "funicular", + 6, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 8, 10], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 10, 13], + ["primary", "primary_construction"], + 10, + ["secondary", "secondary_construction"], + 9, + ["tertiary", "tertiary_construction"], + 8, + ["minor", "minor_construction", "service", "service_construction"], + 7, + ["rail", "rail_construction"], + 9.5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 6.5, + 6 ] - }, - { - "id": "bridge-l2_public_transport", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 10.0, - "layout": { - "line-cap": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 2.5, - 0.6 - ], - 0.6 - ], - 0.6 - ], - 18, - 0.4 - ], - "line-color": { - "stops": [ - [ - 7, - "rgba(255, 50, 50, 1)" - ], - [ - 15, - "rgba(255, 80, 80, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 9, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "subclass" - ], - "rail", - 0.75, - 0 - ], - 0 - ], - 10, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 0.75 - ], - 0.5 - ], - 0.5 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 0.75, - 0 - ] - ], - 14, - [ - "match", - [ - "get", - "is_route" - ], - 99, - [ - "match", - [ - "get", - "class" - ], - "transit", - 1, - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 2 - ], - 1 - ], - 0 - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "cable_car", - "funicular" - ], - 1, - 0 - ] - ], - 18, - [ - "match", - [ - "get", - "class" - ], - [ - "transit" - ], - 1.5, - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 1.5, - 2 - ] - ] - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0, - 9, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 1, - 0 - ], - 12, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 1, - 0 - ], - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - 1, - 0 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail" - ], - [ - "match", - [ - "get", - "subclass" - ], - [ - "rail", - "narrow_gauge", - "rack_rail", - "funicular" - ], - [ - "match", - [ - "get", - "service" - ], - [ - "yard", - "siding" - ], - 0, - 1 - ], - 0 - ], - 0 - ], - 14.5, - 1 - ] - }, - "filter": [ - "all", - [ - ">", - "layer", - 1 - ], - [ - "in", - "class", - "rail", - "transit", - "cable_car", - "gondola" - ], - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "subclass", - "covered_bridge" - ] + ], + 20, + [ + "match", + ["get", "subclass"], + "funicular", + 20, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 112, 126], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 126, 136], + ["primary", "primary_construction"], + 117, + ["secondary", "secondary_construction"], + 112, + ["tertiary", "tertiary_construction"], + 107, + ["minor", "minor_construction", "service", "service_construction"], + 97, + ["rail", "rail_construction"], + 120, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 81, + 92 ] + ] + ], + "line-opacity": 1 + }, + "filter": [ + "all", + ["==", "layer", 1], + [ + "!in", + "class", + "ferry", + "cable_car", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "mask_terrain", + "via_ferrata" + ], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "bridge-l1_road_track", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 14.0, + "layout": { + "line-cap": "butt", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": ["interpolate", ["linear"], ["zoom"], 14, 3, 15, 0.4], + "line-color": { + "stops": [ + [9, "rgba(80, 80, 80, 1)"], + [15, "rgba(90, 90, 90, 1)"] + ] }, - { - "id": "spot_elevation", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "spot_elevation", - "minzoom": 14.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 10.5, - 18, - 13 - ], - "icon-image": [ - "match", - [ - "get", - "class" - ], - [ - "spot_elevation", - "terrain_spot_elevation" - ], - "dot_dark_grey_3", - "" - ], - "text-field": [ - "get", - "ele" - ], - "visibility": "visible", - "icon-offset": [ - 0, - 0 - ], - "icon-rotate": 0, - "text-anchor": "center", - "icon-padding": 30, - "icon-optional": false, - "text-optional": false, - "symbol-placement": "point", - "text-line-height": 0.9, - "text-keep-upright": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-variable-anchor": [ - "literal", - [ - "bottom-left", - "top-left", - "bottom-right", - "top-right" - ] - ], - "text-ignore-placement": false - }, - "paint": { - "icon-color": "#000000", - "text-color": "rgba(80, 80, 80, 1)", - "icon-opacity": 0.8, - "text-opacity": [ - "literal", - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, - 1.5, - 18, - 3 - ] - }, - "filter": [ - "all", - [ - "!in", - "class", - "doline", - "lake_elevation", - "sinkhole", - "sinkhole_rock", - "sinkhole_scree", - "sinkhole_water", - "sinkhole_ice" - ] - ] + "line-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 0.5, 15, 1.1, 16, 1.1, 18, 2, 20, 3], + "line-offset": 0, + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 11, + ["match", ["get", "is_route"], 11, 0.5, 0], + 12, + ["match", ["get", "is_route"], 11, ["match", ["get", "class"], ["path", "track", "footway"], 0.5, 1], 0], + 14, + 0.7, + 15, + 1 + ] + }, + "metadata": { + "maputnik:comment": "casing color for motorway is brown" + }, + "filter": [ + "all", + ["==", "class", "track"], + ["==", "layer", 1], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "bridge-l1_road_path_footway", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 11.0, + "layout": { + "line-cap": "butt", + "line-join": "bevel", + "visibility": "visible" + }, + "paint": { + "line-blur": ["interpolate", ["linear"], ["zoom"], 15, 0.1, 20, 0.4], + "line-color": "rgba(115, 115, 115, 1)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 13, 0.5, 15, 1.1, 20, 3], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 11, + ["match", ["get", "is_route"], 11, 0.5, 0], + 12, + ["match", ["get", "is_route"], 11, ["match", ["get", "class"], ["path", "track", "footway"], 0.5, 1], 0], + 14, + 0.7, + 15, + 1 + ], + "line-dasharray": [ + "step", + ["zoom"], + ["literal", [6, 2]], + 16, + ["literal", [9, 3]], + 17, + ["literal", [12, 4]], + 18, + ["literal", [15, 5]] + ] + }, + "metadata": { + "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" + }, + "filter": [ + "all", + ["in", "class", "path", "footway"], + ["==", "layer", 1], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "bridge-l1_public_transport", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 10, + "layout": { + "line-cap": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + [ + "match", + ["get", "class"], + ["rail"], + ["match", ["get", "subclass"], ["rail"], ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], 0.6], + 0.6 + ], + 14, + [ + "match", + ["get", "class"], + ["rail"], + ["match", ["get", "subclass"], ["rail"], ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], 0.6], + 0.6 + ], + 18, + 0.4 + ], + "line-color": { + "stops": [ + [7, "rgba(206, 132, 132, 1)"], + [15, "rgba(85, 53, 53, 1)"] + ] }, - { - "id": "waterway_line_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "waterway", - "minzoom": 9.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 10, - 10.5, - 16, - [ - "match", - [ - "to-string", - [ - "get", - "width" - ] - ], - [ - "9", - "10" - ], - 18, - [ - "7", - "8" - ], - 17, - [ - "5", - "6" - ], - 16, - "4", - 15, - "3", - 14, - "2", - 13, - "1", - 12, - [ - "match", - [ - "get", - "class" - ], - [ - "river", - "canal" - ], - 18, - 14 - ] - ] - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-padding": 0, - "symbol-spacing": 650, - "symbol-z-order": "auto", - "text-max-width": 9999, - "symbol-placement": "line", - "text-keep-upright": true, - "text-allow-overlap": false, - "text-letter-spacing": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0.1, - 12, - [ - "match", - [ - "get", - "class" - ], - [ - "river" - ], - 0.4, - 0.2 - ] - ], - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgb(20, 136, 205)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": 2 - }, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "!=", - "intermittent", - 1 - ] + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 9, + ["match", ["get", "is_route"], 99, ["match", ["get", "subclass"], "rail", 0.75, 0], 0], + 10, + [ + "match", + ["get", "is_route"], + 99, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 0.75], + 0.5 + ], + 0.5 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 0.75, 0] + ], + 14, + [ + "match", + ["get", "is_route"], + 99, + [ + "match", + ["get", "class"], + "transit", + 1, + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 2], + 1 + ], + 0 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 1, 0] + ], + 18, + ["match", ["get", "class"], ["transit"], 1.5, ["match", ["get", "service"], ["yard", "siding"], 1.5, 2]] + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0, + 9, + ["match", ["get", "class"], ["rail"], 1, 0], + 12, + ["match", ["get", "class"], ["rail"], 1, 0], + 13, + ["match", ["get", "class"], ["rail"], 1, 0], + 14, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail", "funicular"], + ["match", ["get", "service"], ["yard", "siding"], 0, 1], + 0 + ], + 0 + ], + 14.5, + 1 + ] + }, + "filter": [ + "all", + ["==", "layer", 1], + ["in", "class", "rail", "transit"], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "bridge-l2_road_casing", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 7.0, + "layout": { + "line-cap": "butt", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": [ + "interpolate", + ["linear"], + ["zoom"], + 7, + 3, + 8, + 0.4, + 11, + ["match", ["get", "is_route"], [11], 4, 0.4], + 13, + ["match", ["get", "class"], "track", 2, 0.4], + 14, + 0.4 + ], + "line-color": [ + "interpolate", + ["exponential", 1.7], + ["zoom"], + 9, + ["match", ["get", "class"], ["motorway", "trunk"], "rgb(170, 136, 30)", "rgb(80, 80, 80)"], + 15, + ["match", ["get", "class"], ["motorway", "trunk"], "rgb(139, 107, 63)", "rgb(90, 90, 90)"] + ], + "line-width": [ + "interpolate", + ["exponential", 2], + ["zoom"], + 7, + 0, + 8, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 1.5, 3], ["trunk"], 3, 3], + 0 + ], + 9, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 2, 3.5], ["trunk"], 3.5, 3], + 0 + ], + 10, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2, 4], + ["trunk"], + 4, + "primary", + 3.5, + "secondary", + 3.5, + "tertiary", + 3, + ["minor", "service"], + 2.5, + 0 + ], + ["match", ["get", "ramp"], 1, 2, 0] + ], + 11, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2.5, 4.5], + ["trunk"], + 4.5, + "primary", + 4, + "secondary", + 4, + "tertiary", + 3.5, + ["minor", "service"], + 2.75, + ["track", "path", "footway"], + 0.5, + 0 + ], + ["match", ["get", "ramp"], 1, 2.5, 0] + ], + 12, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 2.75, 5], + "primary", + 5, + "secondary", + 4.5, + "tertiary", + 4, + ["minor", "service"], + 3, + ["track", "path", "footway"], + 0.75, + 0 + ], + [11], + [ + "match", + ["get", "class"], + ["motorway", "trunk", "primary", "secondary", "tertiary", "minor"], + ["match", ["get", "ramp"], 1, 2.75, 0.75], + ["track", "path", "footway"], + 0.5, + 0 + ], + ["match", ["get", "ramp"], 1, 2.75, 0] + ], + 13, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 3, 6], + ["trunk"], + 6, + "primary", + 5.5, + "secondary", + 5, + "tertiary", + 4.5, + ["minor", "service"], + 3.5, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3, 1], + 3 + ], + 11, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 3, 6], + "primary", + 4, + "secondary", + 3.75, + "tertiary", + 3.75, + ["minor", "service"], + 3, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3, 0.5], + 3 + ], + 0 + ], + 14, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 4, 7], + ["trunk"], + 7, + "primary", + 6.5, + "secondary", + 6, + "tertiary", + 5, + ["minor", "service"], + 4, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3.5, 0.75], + 3.5 + ], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 4, 7], + "primary", + 4.5, + "secondary", + 4, + "tertiary", + 4, + ["minor", "service"], + 3.5, + ["track", "path", "footway"], + ["match", ["get", "subclass"], "covered_bridge", 3.5, 0.75], + 3.5 ] + ], + 15, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 6.5, 8], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 8, 12], + ["primary", "primary_construction"], + 8, + ["secondary", "secondary_construction"], + 7, + ["tertiary", "tertiary_construction"], + 6, + ["minor", "minor_construction", "service", "service_construction", "rail", "rail_construction"], + 5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + ["match", ["get", "subclass"], "covered_bridge", 4, 1.1], + 4.5 + ], + 16, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 10, 12], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 12, 15], + ["primary", "primary_construction"], + 12, + ["secondary", "secondary_construction"], + 11, + ["tertiary", "tertiary_construction"], + 10, + ["minor", "minor_construction", "service", "service_construction", "rail", "rail_construction"], + 9, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + ["match", ["get", "subclass"], "covered_bridge", 8.5, 1.1], + 8 + ], + 20, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 115, 130], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 130, 140], + ["primary", "primary_construction"], + 120, + ["secondary", "secondary_construction"], + 115, + ["tertiary", "tertiary_construction"], + 110, + ["minor", "minor_construction", "service", "service_construction", "rail", "rail_construction"], + 100, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + ["match", ["get", "subclass"], "covered_bridge", 84, 5], + 100 + ] + ], + "line-offset": 0, + "line-opacity": 1 + }, + "metadata": { + "maputnik:comment": "casing color for motorway is brown" + }, + "filter": [ + "all", + [">", "layer", 1], + [ + "!in", + "class", + "rail", + "ferry", + "path", + "track", + "footway", + "transit", + "cable_car", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "mask_terrain", + "via_ferrata" + ], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "bridge-l2_fill", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 7.0, + "layout": { + "line-cap": "butt", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": { + "stops": [ + [8, 0.4], + [14, 0.1] + ] }, - { - "id": "aerialway", - "type": "line", - "source": "base_v1.0.0", - "source-layer": "transportation", - "minzoom": 12, - "layout": { - "visibility": "visible" - }, - "paint": { - "line-blur": 0.25, - "line-color": { - "stops": [ - [ - 7, - "rgba(156, 155, 155, 1)" - ], - [ - 15, - "rgba(106, 105, 105, 1)" - ] - ] - }, - "line-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - 0.2, - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car" - ], - 1, - 0.75 - ], - 18, - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car" - ], - 2, - 1.5 - ] - ], - "line-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, - 0, - 13, - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car", - "gondola" - ], - 1, - 0 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "cable_car", - "gondola", - "chair_lift" - ], - 1, - 0 - ] - ] - }, - "filter": [ - "all", - [ - "in", - "class", - "cable_car", - "gondola", - "chair_lift" - ] + "line-color": [ + "interpolate", + ["exponential", 1], + ["zoom"], + 9, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + "rgb(255,230,160)", + ["rail", "path", "track", "footway"], + ["match", ["get", "subclass"], "funicular", "rgba(243,243,246,0)", "rgb(243,243,246)"], + "rgb(255,255,255)", + "rgb(243,243,246)", + "rgb(255,255,255)" + ], + 15, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + "rgb(255, 224, 138)", + ["rail", "path", "track", "footway"], + ["match", ["get", "subclass"], "funicular", "rgba(243,243,246,0)", "rgb(243,243,246)"], + "rgb(255,255,255)" + ] + ], + "line-width": [ + "interpolate", + ["exponential", 2], + ["zoom"], + 7, + 0, + 8, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 0.5, 2], ["trunk"], 2, 2], + ["match", ["get", "ramp"], 1, 0.5, 0] + ], + 9, + [ + "match", + ["get", "is_route"], + [5, 10, 99], + ["match", ["get", "class"], ["motorway"], ["match", ["get", "ramp"], 1, 0.75, 2.25], ["trunk"], 2.25, 2], + ["match", ["get", "ramp"], 1, 0.75, 0] + ], + 10, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 0.75, 2.75], + ["trunk"], + 2.75, + "primary", + 2.5, + "secondary", + 2.5, + "tertiary", + 2, + ["minor", "service"], + 1.5, + 0 + ], + ["match", ["get", "ramp"], 1, 0.75, 0] + ], + 11, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.25, 3.25], + ["trunk"], + 3.25, + "primary", + 3, + "secondary", + 3, + "tertiary", + 2.5, + ["minor", "service"], + 1.75, + 0 + ], + ["match", ["get", "ramp"], 1, 1.25, 0] + ], + 12, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.5, 3.75], + ["trunk"], + 3.75, + "primary", + 4, + "secondary", + 3.5, + "tertiary", + 3, + ["minor", "service"], + 2, + 0 + ], + ["match", ["get", "ramp"], 1, 1.5, 0] + ], + 13, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 1.75, 4.5], + ["trunk"], + 4.5, + "primary", + 4.5, + "secondary", + 4, + "tertiary", + 3.5, + ["minor", "service"], + 2.5, + 2 + ], + 11, + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 1.75, 4.5], + "primary", + 3, + "secondary", + 2.75, + "tertiary", + 2.75, + ["minor", "service"], + 2, + 2 + ], + ["match", ["get", "ramp"], 1, 1.75, 0] + ], + 14, + [ + "match", + ["get", "is_route"], + [5, 6, 7, 8, 10, 99], + [ + "match", + ["get", "class"], + ["motorway"], + ["match", ["get", "ramp"], 1, 2.75, 5.5], + ["trunk"], + 5.5, + "primary", + 5.5, + "secondary", + 5, + "tertiary", + 4, + ["minor", "service"], + 3, + 2.5 + ], + [ + "match", + ["get", "class"], + ["motorway", "trunk"], + ["match", ["get", "ramp"], 1, 2.75, 5.5], + "primary", + 3.5, + "secondary", + 3, + "tertiary", + 3, + ["minor", "service"], + 2.5, + 2.5 ] - }, - { - "id": "transportation_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "transportation_name", - "minzoom": 13, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "exponential", - 1.5 - ], - [ - "zoom" - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 11, - 10.5 - ], - 18, - [ - "match", - [ - "get", - "class" - ], - [ - "motorway", - "trunk" - ], - 18, - 16 - ] - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-anchor": "center", - "text-offset": [ - 0, - 0 - ], - "text-padding": 2, - "symbol-spacing": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 15, - 200, - 18, - 400 - ], - "symbol-z-order": "auto", - "text-max-angle": 40, - "text-transform": "none", - "symbol-placement": "line", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-letter-spacing": 0.1, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "icon-anchor": "center", - "icon-pitch-alignment": "auto", - "icon-allow-overlap": true - }, - "paint": { - "text-color": [ - "match", - [ - "get", - "class" - ], - [ - "rail", - "transit", - "gondola", - "chair_lift" - ], - "rgba(170, 170, 170, 1)", - [ - "ferry", - "car_ferry" - ], - "rgba(20, 136, 205, 1)", - "rgba(60, 60, 70, 1)" - ], - "text-halo-blur": 0.2, - "text-halo-color": [ - "match", - [ - "get", - "class" - ], - [ - "rail", - "transit", - "cable_car", - "gondola", - "chair_lift", - "motorway", - "trunk" - ], - "rgba(255, 255, 255, 0.6)", - "rgba(255, 255, 255, 0.8)" - ], - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - [ - "match", - [ - "get", - "class" - ], - [ - "rail", - "transit", - "cable_car", - "gondola", - "chair_lift" - ], - 1.5, - 1.5 - ], - 20, - 3 - ] - }, - "filter": [ - "all", - [ - "!in", - "class", - "chair_lift", - "drag_lift", - "aerialway_transportation", - "aerialway_closed", - "aerialway_goods", - "goods_conveyor" - ], - [ - "==", - "$type", - "LineString" - ] + ], + 15, + [ + "match", + ["get", "subclass"], + "funicular", + 3, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 5, 6.5], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 6.5, 10.5], + ["primary", "primary_construction"], + 6.5, + ["secondary", "secondary_construction"], + 5.5, + ["tertiary", "tertiary_construction"], + 4.5, + ["minor", "minor_construction", "service", "service_construction"], + 3.5, + ["rail", "rail_construction"], + 5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 1.25, + 3 ] - }, - { - "id": "road_number", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "transportation_name", - "minzoom": 13.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Bold" - ], - "text-size": 10.5, - "icon-image": "box_white_grey_casing_{ref_length}", - "text-field": [ - "get", - "ref" - ], - "visibility": "visible", - "icon-offset": [ - 0, - -1.3 - ], - "text-anchor": "center", - "icon-padding": 2, - "text-justify": "center", - "icon-optional": false, - "icon-text-fit": "none", - "text-optional": false, - "symbol-spacing": [ - "step", - [ - "zoom" - ], - 300, - 10, - 600, - 14, - 800 - ], - "symbol-z-order": "auto", - "symbol-placement": "line", - "icon-keep-upright": false, - "text-keep-upright": true, - "icon-allow-overlap": false, - "symbol-avoid-edges": false, - "text-letter-spacing": 0, - "icon-pitch-alignment": "viewport", - "text-pitch-alignment": "viewport", - "icon-ignore-placement": false, - "icon-rotation-alignment": "viewport", - "text-rotation-alignment": "viewport" - }, - "paint": { - "text-color": "rgba(64, 64, 64, 1)", - "icon-opacity": 1, - "text-opacity": 1, - "text-halo-blur": 0, - "text-halo-color": "rgba(0, 0, 0, 0)", - "text-halo-width": 0 - }, - "filter": [ - "all", - [ - "in", - "class", - "motorway", - "trunk", - "primary" - ], - [ - "has", - "ref" - ], - [ - "<=", - "ref_length", - 12 - ], - [ - "==", - "$type", - "LineString" - ] + ], + 16, + [ + "match", + ["get", "subclass"], + "funicular", + 6, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 8, 10], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 10, 13], + ["primary", "primary_construction"], + 10, + ["secondary", "secondary_construction"], + 9, + ["tertiary", "tertiary_construction"], + 8, + ["minor", "minor_construction", "service", "service_construction"], + 7, + ["rail", "rail_construction"], + 9.5, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 6.5, + 6 ] - }, - { - "id": "area_name_glacier_point_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "area_name", - "minzoom": 14.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 11, - 16, - 20 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "symbol-spacing": { - "stops": [ - [ - 12, - 250 - ], - [ - 14, - 550 - ] - ] - }, - "symbol-z-order": "auto", - "text-max-width": 99999, - "symbol-placement": "point", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.15, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(55, 146, 201, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "in", - "subclass", - "glacier" - ] + ], + 20, + [ + "match", + ["get", "subclass"], + "funicular", + 20, + [ + "match", + ["get", "class"], + ["motorway", "motorway_construction"], + ["match", ["get", "ramp"], 1, 112, 126], + ["trunk", "trunk_construction"], + ["match", ["get", "oneway"], 1, 126, 136], + ["primary", "primary_construction"], + 117, + ["secondary", "secondary_construction"], + 112, + ["tertiary", "tertiary_construction"], + 107, + ["minor", "minor_construction", "service", "service_construction"], + 97, + ["rail", "rail_construction"], + 120, + [ + "track", + "track_construction", + "path", + "path_construction", + "footway", + "footway_construction", + "transit", + "transit_construction" + ], + 81, + 92 ] + ] + ], + "line-opacity": 1 + }, + "filter": [ + "all", + [">", "layer", 1], + [ + "!in", + "class", + "ferry", + "cable_car", + "gondola", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor", + "mask_terrain", + "via_ferrata" + ], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "bridge-l2_road_track", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 14.0, + "layout": { + "line-cap": "butt", + "line-join": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": ["interpolate", ["linear"], ["zoom"], 14, 3, 15, 0.4], + "line-color": { + "stops": [ + [9, "rgba(80, 80, 80, 1)"], + [15, "rgba(90, 90, 90, 1)"] + ] }, - { - "id": "area_name_glacier_line_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "area_name", - "minzoom": 12.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 11, - 16, - 20 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "symbol-spacing": { - "stops": [ - [ - 12, - 250 - ], - [ - 14, - 550 - ] - ] - }, - "symbol-z-order": "auto", - "text-max-width": 99999, - "symbol-placement": "line-center", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": { - "stops": [ - [ - 10, - 0.15 - ], - [ - 12, - 0.3 - ] - ] - }, - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "map" - }, - "paint": { - "text-color": "rgba(55, 146, 201, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "==", - "$type", - "LineString" - ], - [ - "in", - "subclass", - "glacier" - ] - ] + "line-width": ["interpolate", ["exponential", 2], ["zoom"], 13, 0.5, 15, 1.1, 16, 1.1, 18, 2, 20, 3], + "line-offset": 0, + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 11, + ["match", ["get", "is_route"], 11, 0.5, 0], + 12, + ["match", ["get", "is_route"], 11, ["match", ["get", "class"], ["path", "track", "footway"], 0.5, 1], 0], + 14, + 0.7, + 15, + 1 + ] + }, + "metadata": { + "maputnik:comment": "casing color for motorway is brown" + }, + "filter": [ + "all", + [">", "layer", 1], + ["==", "class", "track"], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "bridge-l2_road_path_footway", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 11.0, + "layout": { + "line-cap": "butt", + "line-join": "bevel", + "visibility": "visible" + }, + "paint": { + "line-blur": ["interpolate", ["linear"], ["zoom"], 15, 0.1, 20, 0.4], + "line-color": "rgba(115, 115, 115, 1)", + "line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 13, 0.5, 15, 1.1, 20, 3], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 11, + ["match", ["get", "is_route"], 11, 0.5, 0], + 12, + ["match", ["get", "is_route"], 11, ["match", ["get", "class"], ["path", "track", "footway"], 0.5, 1], 0], + 14, + 0.7, + 15, + 1 + ], + "line-dasharray": [ + "step", + ["zoom"], + ["literal", [6, 2]], + 16, + ["literal", [9, 3]], + 17, + ["literal", [12, 4]], + 18, + ["literal", [15, 5]] + ] + }, + "metadata": { + "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" + }, + "filter": [ + "all", + [">", "layer", 1], + ["in", "class", "path", "footway"], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "bridge-l2_public_transport", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 10.0, + "layout": { + "line-cap": "round", + "visibility": "visible" + }, + "paint": { + "line-blur": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + [ + "match", + ["get", "class"], + ["rail"], + ["match", ["get", "subclass"], ["rail"], ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], 0.6], + 0.6 + ], + 14, + [ + "match", + ["get", "class"], + ["rail"], + ["match", ["get", "subclass"], ["rail"], ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], 0.6], + 0.6 + ], + 18, + 0.4 + ], + "line-color": { + "stops": [ + [7, "rgba(255, 50, 50, 1)"], + [15, "rgba(255, 80, 80, 1)"] + ] }, - { - "id": "peaks_other", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 15.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": "dot_dark_grey_3", - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "center", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "text-variable-anchor": [ - "literal", - [ - "bottom-left", - "top-left", - "bottom-right", - "top-right" - ] - ], - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "text-color": "rgba(48, 48, 48, 1)", - "icon-opacity": 1, - "text-opacity": 1, - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, - 1.5, - 18, - 3 - ] - }, - "filter": [ + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 9, + ["match", ["get", "is_route"], 99, ["match", ["get", "subclass"], "rail", 0.75, 0], 0], + 10, + [ + "match", + ["get", "is_route"], + 99, + [ + "match", + ["get", "class"], + ["rail"], + [ "match", - [ - "get", - "class" - ], - [ - "rocky_knoll", - "saddle" - ], - true, - false - ] - }, - { - "id": "peaks_rank5", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 13.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "", - 10, - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "text-color": "rgba(48, 48, 48, 1)", - "icon-opacity": 1, - "text-opacity": 1, - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, - 1.5, - 18, - 3 - ] - }, - "filter": [ - "all", - [ - ">=", - "rank", - 5 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] - }, - { - "id": "peaks_rank4", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 12.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "", - 10, - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "text-color": "rgba(48, 48, 48, 1)", - "icon-opacity": 1, - "text-opacity": 1, - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, - 1.5, - 18, - 3 - ] - }, - "filter": [ - "all", - [ - "==", - "rank", - 4 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] - }, - { - "id": "peaks_rank3", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 11.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "", - 10, - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "text-color": "rgba(48, 48, 48, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 8, - [ - "match", - [ - "get", - "class" - ], - "alpine_peak", - 1, - 0 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "alpine_peak", - "main_peak" - ], - 1, - 0 - ], - 12, - 1 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 8, - [ - "match", - [ - "get", - "class" - ], - "alpine_peak", - 1, - 0 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "alpine_peak", - "main_peak" - ], - 1, - 0 - ], - 12, - 1 - ], - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, - 1.5, - 18, - 3 - ] - }, - "filter": [ - "all", - [ - "==", - "rank", - 3 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] - }, - { - "id": "peaks_rank2", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 10.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "", - 10, - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom", - "text-offset": [ - 0, - 0 - ], - "icon-padding": 0, - "text-justify": "auto", - "text-padding": 2, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "text-color": "rgba(48, 48, 48, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 8, - [ - "match", - [ - "get", - "class" - ], - "alpine_peak", - 1, - 0 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "alpine_peak", - "main_peak" - ], - 1, - 0 - ], - 12, - 1 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 8, - [ - "match", - [ - "get", - "class" - ], - "alpine_peak", - 1, - 0 - ], - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "alpine_peak", - "main_peak" - ], - 1, - 0 - ], - 12, - 1 - ], - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 12, - 1.5, - 18, - 3 - ] - }, - "filter": [ - "all", - [ - "==", - "rank", - 2 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 0.75], + 0.5 + ], + 0.5 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 0.75, 0] + ], + 14, + [ + "match", + ["get", "is_route"], + 99, + [ + "match", + ["get", "class"], + "transit", + 1, + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail"], + ["match", ["get", "service"], ["yard", "siding"], 0, 2], + 1 + ], + 0 + ], + ["match", ["get", "subclass"], ["cable_car", "funicular"], 1, 0] + ], + 18, + ["match", ["get", "class"], ["transit"], 1.5, ["match", ["get", "service"], ["yard", "siding"], 1.5, 2]] + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0, + 9, + ["match", ["get", "class"], ["rail"], 1, 0], + 12, + ["match", ["get", "class"], ["rail"], 1, 0], + 13, + ["match", ["get", "class"], ["rail"], 1, 0], + 14, + [ + "match", + ["get", "class"], + ["rail"], + [ + "match", + ["get", "subclass"], + ["rail", "narrow_gauge", "rack_rail", "funicular"], + ["match", ["get", "service"], ["yard", "siding"], 0, 1], + 0 + ], + 0 + ], + 14.5, + 1 + ] + }, + "filter": [ + "all", + [">", "layer", 1], + ["in", "class", "rail", "transit", "cable_car", "gondola"], + ["==", "$type", "LineString"], + ["!=", "subclass", "covered_bridge"] + ] + }, + { + "id": "spot_elevation", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "spot_elevation", + "minzoom": 14.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 14, 10.5, 18, 13], + "icon-image": ["match", ["get", "class"], ["spot_elevation", "terrain_spot_elevation"], "dot_dark_grey_3", ""], + "text-field": ["get", "ele"], + "visibility": "visible", + "icon-offset": [0, 0], + "icon-rotate": 0, + "text-anchor": "center", + "icon-padding": 30, + "icon-optional": false, + "text-optional": false, + "symbol-placement": "point", + "text-line-height": 0.9, + "text-keep-upright": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-variable-anchor": ["literal", ["bottom-left", "top-left", "bottom-right", "top-right"]], + "text-ignore-placement": false + }, + "paint": { + "icon-color": "#000000", + "text-color": "rgba(80, 80, 80, 1)", + "icon-opacity": 0.8, + "text-opacity": ["literal", 1], + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 12, 1.5, 18, 3] + }, + "filter": [ + "all", + [ + "!in", + "class", + "doline", + "lake_elevation", + "sinkhole", + "sinkhole_rock", + "sinkhole_scree", + "sinkhole_water", + "sinkhole_ice" + ] + ] + }, + { + "id": "waterway_line_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "waterway", + "minzoom": 9.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["exponential", 1.5], + ["zoom"], + 10, + 10.5, + 16, + [ + "match", + ["to-string", ["get", "width"]], + ["9", "10"], + 18, + ["7", "8"], + 17, + ["5", "6"], + 16, + "4", + 15, + "3", + 14, + "2", + 13, + "1", + 12, + ["match", ["get", "class"], ["river", "canal"], 18, 14] + ] + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-padding": 0, + "symbol-spacing": 650, + "symbol-z-order": "auto", + "text-max-width": 9999, + "symbol-placement": "line", + "text-keep-upright": true, + "text-allow-overlap": false, + "text-letter-spacing": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0.1, + 12, + ["match", ["get", "class"], ["river"], 0.4, 0.2] + ], + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgb(20, 136, 205)", + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": 2 + }, + "filter": ["all", ["==", "$type", "LineString"], ["!=", "intermittent", 1]] + }, + { + "id": "aerialway", + "type": "line", + "source": "base_v1.0.0", + "source-layer": "transportation", + "minzoom": 12, + "layout": { + "visibility": "visible" + }, + "paint": { + "line-blur": 0.25, + "line-color": { + "stops": [ + [7, "rgba(156, 155, 155, 1)"], + [15, "rgba(106, 105, 105, 1)"] + ] }, - { - "id": "place_other", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 14.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 4, - [ - "case", - [ - "<=", - 5000, - [ - "get", - "population" - ] - ], - 8, - [ - "<=", - 2000, - [ - "get", - "population" - ] - ], - 6, - 4 - ], - 16, - [ - "case", - [ - "<=", - 5000, - [ - "get", - "population" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "population" - ] - ], - 20, - 18 - ] - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": "center", - "text-offset": [ - "literal", - [ - 0.3, - 0.2 - ] - ], - "text-justify": "auto", - "text-padding": 20, - "icon-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "none", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "text-letter-spacing": 0.025 - }, - "paint": { - "text-color": "rgba(64, 64, 64, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "case", - [ - ">", - 18, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 13, - 1, - 14, - 0 - ], - "text-opacity": 1, - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "cubic-bezier", - 0, - 0.75, - 0.25, - 1 - ], - [ - "zoom" - ], - 12, - 1, - 16, - 2 - ] - }, - "filter": [ - "all", - [ - "!in", - "class", - "continent", - "country", - "state", - "city", - "town", - "village", - "hamlet", - "isolated_dwelling" - ] - ] + "line-width": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + 0.2, + 14, + ["match", ["get", "class"], ["cable_car"], 1, 0.75], + 18, + ["match", ["get", "class"], ["cable_car"], 2, 1.5] + ], + "line-opacity": [ + "interpolate", + ["linear"], + ["zoom"], + 12, + 0, + 13, + ["match", ["get", "class"], ["cable_car", "gondola"], 1, 0], + 14, + ["match", ["get", "class"], ["cable_car", "gondola", "chair_lift"], 1, 0] + ] + }, + "filter": ["all", ["in", "class", "cable_car", "gondola", "chair_lift"]] + }, + { + "id": "transportation_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "transportation_name", + "minzoom": 13, + "layout": { + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["exponential", 1.5], + ["zoom"], + 14, + ["match", ["get", "class"], ["motorway", "trunk"], 11, 10.5], + 18, + ["match", ["get", "class"], ["motorway", "trunk"], 18, 16] + ], + "text-field": "{name:latin}", + "visibility": "visible", + "text-anchor": "center", + "text-offset": [0, 0], + "text-padding": 2, + "symbol-spacing": ["interpolate", ["linear"], ["zoom"], 15, 200, 18, 400], + "symbol-z-order": "auto", + "text-max-angle": 40, + "text-transform": "none", + "symbol-placement": "line", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-letter-spacing": 0.1, + "text-pitch-alignment": "map", + "text-rotation-alignment": "map", + "icon-anchor": "center", + "icon-pitch-alignment": "auto", + "icon-allow-overlap": true + }, + "paint": { + "text-color": [ + "match", + ["get", "class"], + ["rail", "transit", "gondola", "chair_lift"], + "rgba(170, 170, 170, 1)", + ["ferry", "car_ferry"], + "rgba(20, 136, 205, 1)", + "rgba(60, 60, 70, 1)" + ], + "text-halo-blur": 0.2, + "text-halo-color": [ + "match", + ["get", "class"], + ["rail", "transit", "cable_car", "gondola", "chair_lift", "motorway", "trunk"], + "rgba(255, 255, 255, 0.6)", + "rgba(255, 255, 255, 0.8)" + ], + "text-halo-width": [ + "interpolate", + ["linear"], + ["zoom"], + 14, + ["match", ["get", "class"], ["rail", "transit", "cable_car", "gondola", "chair_lift"], 1.5, 1.5], + 20, + 3 + ] + }, + "filter": [ + "all", + [ + "!in", + "class", + "chair_lift", + "drag_lift", + "aerialway_transportation", + "aerialway_closed", + "aerialway_goods", + "goods_conveyor" + ], + ["==", "$type", "LineString"] + ] + }, + { + "id": "road_number", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "transportation_name", + "minzoom": 13.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Bold"], + "text-size": 10.5, + "icon-image": "box_white_grey_casing_{ref_length}", + "text-field": ["get", "ref"], + "visibility": "visible", + "icon-offset": [0, -1.3], + "text-anchor": "center", + "icon-padding": 2, + "text-justify": "center", + "icon-optional": false, + "icon-text-fit": "none", + "text-optional": false, + "symbol-spacing": ["step", ["zoom"], 300, 10, 600, 14, 800], + "symbol-z-order": "auto", + "symbol-placement": "line", + "icon-keep-upright": false, + "text-keep-upright": true, + "icon-allow-overlap": false, + "symbol-avoid-edges": false, + "text-letter-spacing": 0, + "icon-pitch-alignment": "viewport", + "text-pitch-alignment": "viewport", + "icon-ignore-placement": false, + "icon-rotation-alignment": "viewport", + "text-rotation-alignment": "viewport" + }, + "paint": { + "text-color": "rgba(64, 64, 64, 1)", + "icon-opacity": 1, + "text-opacity": 1, + "text-halo-blur": 0, + "text-halo-color": "rgba(0, 0, 0, 0)", + "text-halo-width": 0 + }, + "filter": [ + "all", + ["in", "class", "motorway", "trunk", "primary"], + ["has", "ref"], + ["<=", "ref_length", 12], + ["==", "$type", "LineString"] + ] + }, + { + "id": "area_name_glacier_point_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "area_name", + "minzoom": 14.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": ["interpolate", ["linear"], ["zoom"], 10, 11, 16, 20], + "text-field": "{name:latin}", + "visibility": "visible", + "symbol-spacing": { + "stops": [ + [12, 250], + [14, 550] + ] }, - { - "id": "poi_rank1", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "poi", - "minzoom": 14, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 13, - 13, - 18, - 20 - ], - "icon-image": [ - "match", - [ - "get", - "subclass" - ], - "railway_station", - "circle_dark_grey_6", - "castle", - "castle_grey", - "" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": [ - "match", - [ - "get", - "subclass" - ], - [ - "castle" - ], - "left", - "railway_station", - "bottom-left", - "center" - ], - "text-offset": [ - "match", - [ - "get", - "subclass" - ], - "railway_station", - [ - "literal", - [ - 0.5, - 0.15 - ] - ], - [ - "literal", - [ - 0.8, - 0.15 - ] - ] - ], - "text-justify": "left", - "text-padding": 10, - "text-optional": false, - "text-max-width": 10, - "symbol-avoid-edges": true - }, - "paint": { - "text-color": "rgba(18, 16, 16, 1)", - "text-opacity": 1, - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 1, - 17, - 2 - ] - }, - "filter": [ - "all", - [ - "in", - "subclass", - "castle", - "railway_station" - ], - [ - "in", - "class", - "castle", - "railway" - ] - ] + "symbol-z-order": "auto", + "text-max-width": 99999, + "symbol-placement": "point", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.15, + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(55, 146, 201, 1)", + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": 1 + }, + "filter": ["all", ["==", "$type", "Point"], ["in", "subclass", "glacier"]] + }, + { + "id": "area_name_glacier_line_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "area_name", + "minzoom": 12.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": ["interpolate", ["linear"], ["zoom"], 10, 11, 16, 20], + "text-field": "{name:latin}", + "visibility": "visible", + "symbol-spacing": { + "stops": [ + [12, 250], + [14, 550] + ] }, - { - "id": "place_hamlet_isolated_dwelling", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 12.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 4, - [ - "case", - [ - "<=", - 50, - [ - "get", - "population" - ] - ], - 6, - 4 - ], - 16, - [ - "case", - [ - "<=", - 50, - [ - "get", - "population" - ] - ], - 20, - 18 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_dark_grey_4", - 12, - "circle_dark_grey_6" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": [ - "literal", - "bottom-left" - ], - "text-offset": [ - "literal", - [ - 0.3, - 0.2 - ] - ], - "text-justify": "auto", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 2, - 13, - 2, - 14, - 0 - ], - "icon-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "none", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "text-letter-spacing": 0.025 - }, - "paint": { - "text-color": "rgba(64, 64, 64, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "case", - [ - ">", - 30, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 13, - [ - "case", - [ - ">", - 31, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 14, - 0 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "case", - [ - ">", - 30, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 13, - [ - "case", - [ - ">", - 31, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 14, - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "cubic-bezier", - 0, - 0.75, - 0.25, - 1 - ], - [ - "zoom" - ], - 12, - 1, - 16, - 2 - ] - }, - "filter": [ - "all", - [ - "in", - "class", - "hamlet", - "isolated_dwelling" - ] - ] + "symbol-z-order": "auto", + "text-max-width": 99999, + "symbol-placement": "line-center", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": { + "stops": [ + [10, 0.15], + [12, 0.3] + ] }, - { - "id": "place_country_exclave", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 11.0, - "maxzoom": 22.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 1, - 11, - 7, - 14, - 11, - 16, - 18, - 24 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-max-width": 10, - "text-transform": "uppercase", - "text-letter-spacing": 0.12 - }, - "paint": { - "text-color": "rgba(145, 70, 145, 0.9)", - "text-opacity": 1, - "text-halo-blur": 1, - "text-halo-color": "rgba(255, 255, 255, 0.8)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "in", - "class", - "country" - ], - [ - "in", - "iso_a2", - "DE", - "IT" - ] - ] + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "map" + }, + "paint": { + "text-color": "rgba(55, 146, 201, 1)", + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": 1 + }, + "filter": ["all", ["==", "$type", "LineString"], ["in", "subclass", "glacier"]] + }, + { + "id": "peaks_other", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 15.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": "dot_dark_grey_3", + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "center", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "text-variable-anchor": ["literal", ["bottom-left", "top-left", "bottom-right", "top-right"]], + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "icon-color": "rgba(0, 0, 0, 1)", + "text-color": "rgba(48, 48, 48, 1)", + "icon-opacity": 1, + "text-opacity": 1, + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-color": "rgba(255, 255, 255, 1)", + "icon-halo-width": 0, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 12, 1.5, 18, 3] + }, + "filter": ["match", ["get", "class"], ["rocky_knoll", "saddle"], true, false] + }, + { + "id": "peaks_rank5", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 13.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "", 10, "dot_dark_grey_4", 14, "dot_dark_grey_6", 18, "dot_dark_grey_8"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "icon-color": "rgba(0, 0, 0, 1)", + "text-color": "rgba(48, 48, 48, 1)", + "icon-opacity": 1, + "text-opacity": 1, + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-color": "rgba(255, 255, 255, 1)", + "icon-halo-width": 0, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 12, 1.5, 18, 3] + }, + "filter": ["all", [">=", "rank", 5], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "peaks_rank4", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 12.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "", 10, "dot_dark_grey_4", 14, "dot_dark_grey_6", 18, "dot_dark_grey_8"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "icon-color": "rgba(0, 0, 0, 1)", + "text-color": "rgba(48, 48, 48, 1)", + "icon-opacity": 1, + "text-opacity": 1, + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-color": "rgba(255, 255, 255, 1)", + "icon-halo-width": 0, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 12, 1.5, 18, 3] + }, + "filter": ["all", ["==", "rank", 4], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "peaks_rank3", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 11.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "", 10, "dot_dark_grey_4", 14, "dot_dark_grey_6", 18, "dot_dark_grey_8"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "icon-color": "rgba(0, 0, 0, 1)", + "text-color": "rgba(48, 48, 48, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 8, + ["match", ["get", "class"], "alpine_peak", 1, 0], + 11, + ["match", ["get", "class"], ["alpine_peak", "main_peak"], 1, 0], + 12, + 1 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 8, + ["match", ["get", "class"], "alpine_peak", 1, 0], + 11, + ["match", ["get", "class"], ["alpine_peak", "main_peak"], 1, 0], + 12, + 1 + ], + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-color": "rgba(255, 255, 255, 1)", + "icon-halo-width": 0, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 12, 1.5, 18, 3] + }, + "filter": ["all", ["==", "rank", 3], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "peaks_rank2", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 10.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "", 10, "dot_dark_grey_4", 14, "dot_dark_grey_6", 18, "dot_dark_grey_8"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom", + "text-offset": [0, 0], + "icon-padding": 0, + "text-justify": "auto", + "text-padding": 2, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "icon-color": "rgba(0, 0, 0, 1)", + "text-color": "rgba(48, 48, 48, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 8, + ["match", ["get", "class"], "alpine_peak", 1, 0], + 11, + ["match", ["get", "class"], ["alpine_peak", "main_peak"], 1, 0], + 12, + 1 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 8, + ["match", ["get", "class"], "alpine_peak", 1, 0], + 11, + ["match", ["get", "class"], ["alpine_peak", "main_peak"], 1, 0], + 12, + 1 + ], + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-color": "rgba(255, 255, 255, 1)", + "icon-halo-width": 0, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 12, 1.5, 18, 3] + }, + "filter": ["all", ["==", "rank", 2], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "place_other", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 14.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["cubic-bezier", 0.5, 0.1, 0.7, 1], + ["zoom"], + 4, + ["case", ["<=", 5000, ["get", "population"]], 8, ["<=", 2000, ["get", "population"]], 6, 4], + 16, + ["case", ["<=", 5000, ["get", "population"]], 22, ["<=", 2000, ["get", "population"]], 20, 18] + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": "center", + "text-offset": ["literal", [0.3, 0.2]], + "text-justify": "auto", + "text-padding": 20, + "icon-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "none", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "text-letter-spacing": 0.025 + }, + "paint": { + "text-color": "rgba(64, 64, 64, 1)", + "icon-opacity": ["step", ["zoom"], 0, 11, ["case", [">", 18, ["get", "rank"]], 1, 0], 13, 1, 14, 0], + "text-opacity": 1, + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["cubic-bezier", 0, 0.75, 0.25, 1], ["zoom"], 12, 1, 16, 2] + }, + "filter": [ + "all", + ["!in", "class", "continent", "country", "state", "city", "town", "village", "hamlet", "isolated_dwelling"] + ] + }, + { + "id": "poi_rank1", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "poi", + "minzoom": 14, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 13, 13, 18, 20], + "icon-image": [ + "match", + ["get", "subclass"], + "railway_station", + "circle_dark_grey_6", + "castle", + "castle_grey", + "" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": ["match", ["get", "subclass"], ["castle"], "left", "railway_station", "bottom-left", "center"], + "text-offset": [ + "match", + ["get", "subclass"], + "railway_station", + ["literal", [0.5, 0.15]], + ["literal", [0.8, 0.15]] + ], + "text-justify": "left", + "text-padding": 10, + "text-optional": false, + "text-max-width": 10, + "symbol-avoid-edges": true + }, + "paint": { + "text-color": "rgba(18, 16, 16, 1)", + "text-opacity": 1, + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2] + }, + "filter": ["all", ["in", "subclass", "castle", "railway_station"], ["in", "class", "castle", "railway"]] + }, + { + "id": "place_hamlet_isolated_dwelling", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 12.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["cubic-bezier", 0.5, 0.1, 0.7, 1], + ["zoom"], + 4, + ["case", ["<=", 50, ["get", "population"]], 6, 4], + 16, + ["case", ["<=", 50, ["get", "population"]], 20, 18] + ], + "icon-image": ["step", ["zoom"], "circle_dark_grey_4", 12, "circle_dark_grey_6"], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": ["literal", "bottom-left"], + "text-offset": ["literal", [0.3, 0.2]], + "text-justify": "auto", + "text-padding": ["interpolate", ["linear"], ["zoom"], 10, 2, 13, 2, 14, 0], + "icon-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "none", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "text-letter-spacing": 0.025 + }, + "paint": { + "text-color": "rgba(64, 64, 64, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 11, + ["case", [">", 30, ["get", "rank"]], 1, 0], + 13, + ["case", [">", 31, ["get", "rank"]], 1, 0], + 14, + 0 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 11, + ["case", [">", 30, ["get", "rank"]], 1, 0], + 13, + ["case", [">", 31, ["get", "rank"]], 1, 0], + 14, + 1 + ], + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["cubic-bezier", 0, 0.75, 0.25, 1], ["zoom"], 12, 1, 16, 2] + }, + "filter": ["all", ["in", "class", "hamlet", "isolated_dwelling"]] + }, + { + "id": "place_country_exclave", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 11.0, + "maxzoom": 22.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 1, 11, 7, 14, 11, 16, 18, 24], + "text-field": "{name:latin}", + "visibility": "visible", + "text-max-width": 10, + "text-transform": "uppercase", + "text-letter-spacing": 0.12 + }, + "paint": { + "text-color": "rgba(145, 70, 145, 0.9)", + "text-opacity": 1, + "text-halo-blur": 1, + "text-halo-color": "rgba(255, 255, 255, 0.8)", + "text-halo-width": 1 + }, + "filter": ["all", ["in", "class", "country"], ["in", "iso_a2", "DE", "IT"]] + }, + { + "id": "place_village", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 7.0, + "maxzoom": 18.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["cubic-bezier", 0.5, 0.1, 0.7, 1], + ["zoom"], + 4, + 11, + 10, + ["case", ["<=", 3000, ["get", "population"]], 16, 14], + 16, + ["case", ["<=", 3000, ["get", "population"]], 28, 24] + ], + "icon-image": [ + "step", + ["zoom"], + "circle_dark_grey_4", + 6, + "circle_dark_grey_4", + 8, + "circle_dark_grey_6", + 10, + "circle_dark_grey_8", + 12, + "circle_dark_grey_10" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": ["literal", "bottom-left"], + "text-offset": ["literal", [0.4, 0.2]], + "text-justify": "auto", + "text-padding": 10, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "none", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "text-letter-spacing": 0.025 + }, + "paint": { + "text-color": "rgba(64, 64, 64, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 7, + ["match", ["get", "capital"], [2, 4], 1, 0], + 8, + ["case", [">", 14, ["get", "rank"]], 1, 0], + 9, + ["case", [">", 15, ["get", "rank"]], 1, 0], + 10, + ["case", [">", 18, ["get", "rank"]], 1, 0], + 11, + ["case", [">", 28, ["get", "rank"]], 1, 0], + 12, + 1, + 13, + 0 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 7, + ["match", ["get", "capital"], [2, 4], 1, 0], + 8, + ["case", [">", 14, ["get", "rank"]], 1, 0], + 9, + ["case", [">", 15, ["get", "rank"]], 1, 0], + 10, + ["case", [">", 18, ["get", "rank"]], 1, 0], + 11, + ["case", [">", 28, ["get", "rank"]], 1, 0], + 12, + 1 + ], + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["cubic-bezier", 0, 0.75, 0.25, 1], ["zoom"], 12, 1, 16, 2] + }, + "filter": ["all", ["==", "class", "village"]] + }, + { + "id": "aerodrome_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "aerodrome_label", + "minzoom": 11.0, + "layout": { + "icon-size": ["interpolate", ["linear"], ["zoom"], 11, 0.7, 14, 1], + "text-font": ["B612 Regular"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 11, + ["match", ["get", "class"], "international", 16, "regional", 16, 12], + 14, + ["match", ["get", "class"], "international", 20, "regional", 18, 16] + ], + "icon-image": [ + "match", + ["get", "class"], + "international", + "airplane_large_grey", + "regional", + "airplane_medium_grey", + "other", + "airplane_small_grey", + "helipad", + "helicopter_grey", + "" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "icon-anchor": "center", + "text-anchor": "left", + "text-offset": ["match", ["get", "class"], "helipad", ["literal", [0.9, 0.2]], ["literal", [0.9, 0]]], + "text-justify": "center", + "text-padding": 2, + "text-transform": "none" + }, + "paint": { + "text-color": "rgba(64, 64, 64, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 11, + ["match", ["get", "class"], ["international", "regional"], 1, 0], + 12, + 1 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 11, + ["match", ["get", "class"], ["international", "regional"], 1, 0], + 12, + 1 + ], + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.8)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2] + }, + "filter": ["all", ["!=", "class", "helipad"]] + }, + { + "id": "peaks_rank1", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "mountain_peak", + "minzoom": 9.0, + "maxzoom": 22.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 10, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 14, + ["<=", 3000, ["get", "ele"]], + 13, + ["<=", 2000, ["get", "ele"]], + 12, + 11 + ], + 18, + [ + "case", + ["<=", 4000, ["get", "ele"]], + 23, + ["<=", 3000, ["get", "ele"]], + 22, + ["<=", 2000, ["get", "ele"]], + 21, + 20 + ] + ], + "icon-image": ["step", ["zoom"], "dot_dark_grey_4", 14, "dot_dark_grey_6", 18, "dot_dark_grey_8"], + "text-field": [ + "format", + ["get", "name:latin"], + {}, + "\n", + {}, + ["get", "ele"], + { + "font-scale": 0.75 + } + ], + "visibility": "visible", + "icon-anchor": "center", + "icon-offset": [0, 0], + "text-anchor": "bottom", + "icon-padding": 2, + "text-justify": "auto", + "text-padding": 10, + "icon-optional": false, + "text-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 8, + "symbol-placement": "point", + "text-line-height": 1.15, + "icon-allow-overlap": false, + "text-allow-overlap": false, + "text-radial-offset": 0.3, + "text-letter-spacing": 0.025, + "icon-pitch-alignment": "auto", + "icon-ignore-placement": false, + "text-ignore-placement": false, + "icon-rotation-alignment": "auto" + }, + "paint": { + "icon-color": "rgba(0, 0, 0, 1)", + "text-color": "rgba(48, 48, 48, 1)", + "icon-opacity": ["step", ["zoom"], 0, 9, ["case", ["<=", 3200, ["get", "ele"]], 1, 0], 10, 1], + "text-opacity": ["step", ["zoom"], 0, 9, ["case", ["<=", 3200, ["get", "ele"]], 1, 0], 10, 1], + "icon-halo-blur": 0, + "text-halo-blur": 1, + "icon-halo-color": "rgba(255, 255, 255, 1)", + "icon-halo-width": 0, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["linear"], ["zoom"], 10, 1.5, 18, 3] + }, + "filter": ["all", ["==", "rank", 1], ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"]] + }, + { + "id": "place_town", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 6.0, + "maxzoom": 16.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Bold"], + "text-size": [ + "interpolate", + ["cubic-bezier", 0.5, 0.1, 0.7, 1], + ["zoom"], + 4, + 11, + 16, + ["case", ["<=", 30000, ["get", "population"]], 32, 28] + ], + "icon-image": [ + "step", + ["zoom"], + "circle_dark_grey_4", + 6, + "circle_dark_grey_6", + 8, + "circle_dark_grey_8", + 10, + "circle_dark_grey_10", + 12, + "circle_dark_grey_12" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": ["literal", "bottom-left"], + "text-offset": ["literal", [0.35, 0.1]], + "text-justify": "auto", + "text-padding": 10, + "icon-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "uppercase", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "symbol-placement": "point", + "text-letter-spacing": 0.025 + }, + "paint": { + "text-color": "rgba(64, 64, 64, 1)", + "icon-opacity": [ + "step", + ["zoom"], + 0, + 6, + ["case", [">", 10, ["get", "rank"]], 1, ["match", ["get", "capital"], [2, 4], 1, 0]], + 8, + 1, + 12, + 0 + ], + "text-opacity": [ + "step", + ["zoom"], + 0, + 6, + ["case", [">", 10, ["get", "rank"]], 1, ["match", ["get", "capital"], [2, 4], 1, 0]], + 8, + 1 + ], + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["cubic-bezier", 0, 0.75, 0.25, 1], ["zoom"], 12, 1, 16, 3] + }, + "filter": ["all", ["==", "class", "town"]] + }, + { + "id": "water_name_point_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "water_name", + "minzoom": 7.0, + "maxzoom": 22.0, + "layout": { + "text-font": ["B612 Italic"], + "text-size": [ + "interpolate", + ["linear"], + ["zoom"], + 8, + ["match", ["get", "size"], [10, 9], 12, [8, 7], 10, 10], + 10, + ["match", ["get", "size"], [10, 9], 22, [8, 7, 6], 18, [5, 4], 16, [3], 14, [2], 12, [1], 10, 10], + 12, + ["match", ["get", "size"], [10, 9], 24, [8, 7], 22, [6, 5, 4, 3], 20, [2], 16, [1], 12, 12], + 14, + ["match", ["get", "size"], [10, 9], 28, [8, 7], 26, [6, 5, 4, 3], 24, [2], 22, [1], 14, 12], + 15, + ["match", ["get", "size"], [10, 9], 30, [8, 7], 28, [6, 5, 4, 3], 26, [2], 24, [1], 18, 18] + ], + "text-field": "{name:latin}", + "visibility": "visible", + "text-rotate": ["get", "direction"], + "text-padding": 2, + "symbol-spacing": 250, + "symbol-z-order": "auto", + "text-max-width": 20, + "symbol-placement": "point", + "text-keep-upright": true, + "text-allow-overlap": false, + "text-letter-spacing": [ + "interpolate", + ["linear"], + ["zoom"], + 7, + ["match", ["get", "size"], [10, 9, 8], 0.1, [7, 6], 0.04, [5, 4, 3], 0.02, [2], 0.01, 0.05], + 16, + ["match", ["get", "size"], [10, 9, 8], 0.7, [7, 6], 0.5, [5, 4, 3], 0.3, [2], 0.2, 0.1] + ], + "text-pitch-alignment": "map", + "text-ignore-placement": false, + "text-rotation-alignment": "viewport" + }, + "paint": { + "text-color": "rgba(20, 136, 205, 1)", + "text-opacity": [ + "step", + ["zoom"], + 0, + 7, + ["match", ["get", "size"], [10, 9, 8], 1, 0], + 8, + ["match", ["get", "size"], [10, 9, 8, 7, 6], 1, 0], + 9, + ["match", ["get", "size"], [10, 9, 8, 7, 6, 4, 3], 1, 0], + 10, + ["match", ["get", "size"], [10, 9, 8, 7, 6, 5, 4, 3, 2], 1, 0], + 12, + ["match", ["get", "size"], [10, 9, 8, 7, 6, 5, 4, 3, 2, 1], 1, 1] + ], + "text-halo-blur": 0.25, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": 1 + }, + "filter": ["all", ["==", "$type", "Point"], ["==", "class", "lake"]] + }, + { + "id": "park_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "park", + "minzoom": 8.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["cubic-bezier", 0.5, 0.1, 0.7, 1], ["zoom"], 8, 14, 16, 28], + "text-field": "{name:latin}", + "visibility": "visible", + "text-padding": ["interpolate", ["linear"], ["zoom"], 10, 2, 14, 10], + "symbol-z-order": ["literal", "auto"] + }, + "paint": { + "text-color": "rgba(70, 130, 25, 0.9)", + "text-halo-blur": 1, + "text-halo-color": "rgba(255, 255, 255, 0.8)", + "text-halo-width": 1 + }, + "filter": ["all", ["in", "class", "national_park"], ["==", "$type", "Point"]] + }, + { + "id": "area_name_massif_label", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "area_name", + "minzoom": 11.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 10, 14, 16, 23], + "text-field": "{name:latin}", + "visibility": "visible", + "symbol-spacing": { + "stops": [ + [12, 250], + [14, 550] + ] }, + "symbol-z-order": "auto", + "text-max-width": 99999, + "symbol-placement": "point", + "text-keep-upright": true, + "symbol-avoid-edges": true, + "text-allow-overlap": false, + "text-letter-spacing": 0.07, + "text-pitch-alignment": "viewport", + "text-ignore-placement": false, + "text-rotation-alignment": "viewport" + }, + "paint": { + "text-color": "rgba(48, 48, 48, 1)", + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": 1 + }, + "filter": ["all", ["==", "$type", "Point"], ["in", "subclass", "massif"]] + }, + { + "id": "place_city", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 2.0, + "maxzoom": 14.0, + "layout": { + "icon-size": 1, + "text-font": ["B612 Bold"], + "text-size": ["interpolate", ["cubic-bezier", 0.5, 0.1, 0.7, 1], ["zoom"], 1, 11, 4, 12, 16, 48], + "icon-image": [ + "step", + ["zoom"], + "dot_circle_dark_grey_6", + 6, + "dot_circle_dark_grey_8", + 8, + "circle_circle_dark_grey_10", + 10, + "circle_circle_dark_grey_12", + 12, + "circle_circle_dark_grey_12" + ], + "text-field": ["get", "name:latin"], + "visibility": "visible", + "text-anchor": "bottom-left", + "text-offset": ["literal", [0.35, 0.1]], + "text-justify": "auto", + "text-padding": 10, + "icon-optional": false, + "symbol-z-order": ["literal", "auto"], + "text-max-width": 10, + "text-transform": "uppercase", + "symbol-sort-key": ["to-number", ["get", "rank"]], + "text-letter-spacing": 0.025 + }, + "paint": { + "text-color": "rgba(64, 64, 64, 1)", + "icon-opacity": ["step", ["zoom"], 1, 11, 0], + "text-opacity": 1, + "text-halo-blur": 1, + "text-halo-color": "rgba(242, 242, 242, 0.6)", + "text-halo-width": ["interpolate", ["cubic-bezier", 0, 0.75, 0.25, 1], ["zoom"], 12, 1, 16, 3] + }, + "filter": ["all", ["==", "class", "city"]] + }, + { + "id": "place_country_LI", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 0.0, + "maxzoom": 7.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 1, 12, 6, 16], + "text-field": "{name:latin}", + "visibility": "visible", + "text-max-width": 10, + "text-transform": "uppercase", + "text-letter-spacing": 0.12 + }, + "paint": { + "text-color": "rgba(145, 70, 145, 0.9)", + "text-opacity": ["interpolate", ["linear"], ["zoom"], 6, 1, 7, 0], + "text-halo-blur": 1, + "text-halo-color": "rgba(255, 255, 255, 0.8)", + "text-halo-width": 1 + }, + "filter": ["all", ["in", "class", "country"], ["in", "iso_a2", "LI"]] + }, + { + "id": "place_country_CH", + "type": "symbol", + "source": "base_v1.0.0", + "source-layer": "place", + "minzoom": 0.0, + "maxzoom": 7.0, + "layout": { + "text-font": ["B612 Regular"], + "text-size": ["interpolate", ["linear"], ["zoom"], 1, 12, 6, 16], + "text-field": "{name:latin}", + "visibility": "visible", + "text-max-width": 10, + "text-transform": "uppercase", + "text-letter-spacing": 0.12 + }, + "paint": { + "text-color": "rgba(145, 70, 145, 0.9)", + "text-opacity": ["interpolate", ["linear"], ["zoom"], 6, 1, 7, 0], + "text-halo-blur": 1, + "text-halo-color": "rgba(255, 255, 255, 0.8)", + "text-halo-width": 1 + }, + "filter": ["all", ["in", "class", "country"], ["in", "iso_a2", "CH"]] + } + ], + "metadata": { + "maptiler:template": { + "groups": [ { - "id": "place_village", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 7.0, - "maxzoom": 18.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 4, - 11, - 10, - [ - "case", - [ - "<=", - 3000, - [ - "get", - "population" - ] - ], - 16, - 14 - ], - 16, - [ - "case", - [ - "<=", - 3000, - [ - "get", - "population" - ] - ], - 28, - 24 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_dark_grey_4", - 6, - "circle_dark_grey_4", - 8, - "circle_dark_grey_6", - 10, - "circle_dark_grey_8", - 12, - "circle_dark_grey_10" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": [ - "literal", - "bottom-left" - ], - "text-offset": [ - "literal", - [ - 0.4, - 0.2 - ] - ], - "text-justify": "auto", - "text-padding": 10, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "none", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "text-letter-spacing": 0.025 - }, - "paint": { - "text-color": "rgba(64, 64, 64, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 7, - [ - "match", - [ - "get", - "capital" - ], - [ - 2, - 4 - ], - 1, - 0 - ], - 8, - [ - "case", - [ - ">", - 14, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 9, - [ - "case", - [ - ">", - 15, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 10, - [ - "case", - [ - ">", - 18, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 11, - [ - "case", - [ - ">", - 28, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 12, - 1, - 13, - 0 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 7, - [ - "match", - [ - "get", - "capital" - ], - [ - 2, - 4 - ], - 1, - 0 - ], - 8, - [ - "case", - [ - ">", - 14, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 9, - [ - "case", - [ - ">", - 15, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 10, - [ - "case", - [ - ">", - 18, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 11, - [ - "case", - [ - ">", - 28, - [ - "get", - "rank" - ] - ], - 1, - 0 - ], - 12, - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "cubic-bezier", - 0, - 0.75, - 0.25, - 1 - ], - [ - "zoom" - ], - 12, - 1, - 16, - 2 - ] - }, - "filter": [ - "all", - [ - "==", - "class", - "village" - ] - ] + "id": "4rZcx2YUdbGIJ_xQaDQb6", + "icon": "variant2", + "name": "label", + "layers": [ + "place_country_CH", + "place_country_LI", + "place_city", + "area_name_massif_label", + "park_label", + "water_name_point_label", + "place_town", + "place_village", + "place_country_exclave", + "place_hamlet_isolated_dwelling", + "place_other", + "area_name_glacier_line_label", + "area_name_glacier_point_label" + ] }, { - "id": "aerodrome_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "aerodrome_label", - "minzoom": 11.0, - "layout": { - "icon-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - 0.7, - 14, - 1 - ], - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 11, - [ - "match", - [ - "get", - "class" - ], - "international", - 16, - "regional", - 16, - 12 - ], - 14, - [ - "match", - [ - "get", - "class" - ], - "international", - 20, - "regional", - 18, - 16 - ] - ], - "icon-image": [ - "match", - [ - "get", - "class" - ], - "international", - "airplane_large_grey", - "regional", - "airplane_medium_grey", - "other", - "airplane_small_grey", - "helipad", - "helicopter_grey", - "" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "icon-anchor": "center", - "text-anchor": "left", - "text-offset": [ - "match", - [ - "get", - "class" - ], - "helipad", - [ - "literal", - [ - 0.9, - 0.2 - ] - ], - [ - "literal", - [ - 0.9, - 0 - ] - ] - ], - "text-justify": "center", - "text-padding": 2, - "text-transform": "none" - }, - "paint": { - "text-color": "rgba(64, 64, 64, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "international", - "regional" - ], - 1, - 0 - ], - 12, - 1 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 11, - [ - "match", - [ - "get", - "class" - ], - [ - "international", - "regional" - ], - 1, - 0 - ], - 12, - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.8)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 14, - 1, - 17, - 2 - ] - }, - "filter": [ - "all", - [ - "!=", - "class", - "helipad" - ] - ] + "id": "spbW1YO3D6JmGqVeeVEo3", + "icon": "poi", + "name": "poi", + "layers": ["poi_rank1"] }, { - "id": "peaks_rank1", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "mountain_peak", - "minzoom": 9.0, - "maxzoom": 22.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 14, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 13, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 12, - 11 - ], - 18, - [ - "case", - [ - "<=", - 4000, - [ - "get", - "ele" - ] - ], - 23, - [ - "<=", - 3000, - [ - "get", - "ele" - ] - ], - 22, - [ - "<=", - 2000, - [ - "get", - "ele" - ] - ], - 21, - 20 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "text-field": [ - "format", - [ - "get", - "name:latin" - ], - {}, - "\n", - {}, - [ - "get", - "ele" - ], - { - "font-scale": 0.75 - } - ], - "visibility": "visible", - "icon-anchor": "center", - "icon-offset": [ - 0, - 0 - ], - "text-anchor": "bottom", - "icon-padding": 2, - "text-justify": "auto", - "text-padding": 10, - "icon-optional": false, - "text-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 8, - "symbol-placement": "point", - "text-line-height": 1.15, - "icon-allow-overlap": false, - "text-allow-overlap": false, - "text-radial-offset": 0.3, - "text-letter-spacing": 0.025, - "icon-pitch-alignment": "auto", - "icon-ignore-placement": false, - "text-ignore-placement": false, - "icon-rotation-alignment": "auto" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "text-color": "rgba(48, 48, 48, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 9, - [ - "case", - [ - "<=", - 3200, - [ - "get", - "ele" - ] - ], - 1, - 0 - ], - 10, - 1 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 9, - [ - "case", - [ - "<=", - 3200, - [ - "get", - "ele" - ] - ], - 1, - 0 - ], - 10, - 1 - ], - "icon-halo-blur": 0, - "text-halo-blur": 1, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 1.5, - 18, - 3 - ] - }, - "filter": [ - "all", - [ - "==", - "rank", - 1 - ], - [ - "!in", - "class", - "rocky_knoll", - "saddle", - "mountain_pass" - ] - ] + "id": "Egb2j0u2wyQyI8FftRcqF", + "icon": "terrain", + "name": "mountain_peak", + "layers": ["peaks_rank1", "peaks_rank2", "peaks_rank3", "peaks_rank4", "peaks_rank5", "peaks_other"] }, { - "id": "place_town", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 6.0, - "maxzoom": 16.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Bold" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 4, - 11, - 16, - [ - "case", - [ - "<=", - 30000, - [ - "get", - "population" - ] - ], - 32, - 28 - ] - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "circle_dark_grey_4", - 6, - "circle_dark_grey_6", - 8, - "circle_dark_grey_8", - 10, - "circle_dark_grey_10", - 12, - "circle_dark_grey_12" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": [ - "literal", - "bottom-left" - ], - "text-offset": [ - "literal", - [ - 0.35, - 0.1 - ] - ], - "text-justify": "auto", - "text-padding": 10, - "icon-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "uppercase", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "symbol-placement": "point", - "text-letter-spacing": 0.025 - }, - "paint": { - "text-color": "rgba(64, 64, 64, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 0, - 6, - [ - "case", - [ - ">", - 10, - [ - "get", - "rank" - ] - ], - 1, - [ - "match", - [ - "get", - "capital" - ], - [ - 2, - 4 - ], - 1, - 0 - ] - ], - 8, - 1, - 12, - 0 - ], - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 6, - [ - "case", - [ - ">", - 10, - [ - "get", - "rank" - ] - ], - 1, - [ - "match", - [ - "get", - "capital" - ], - [ - 2, - 4 - ], - 1, - 0 - ] - ], - 8, - 1 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "cubic-bezier", - 0, - 0.75, - 0.25, - 1 - ], - [ - "zoom" - ], - 12, - 1, - 16, - 3 - ] - }, - "filter": [ - "all", - [ - "==", - "class", - "town" - ] - ] + "id": "o-n3H-7f0sOIKwDFxFRaG", + "icon": "builtUp", + "name": "infrastructure", + "layers": ["housenumber", "building_2d_casing", "building_2d", "building_ln", "construct", "construct_line"] }, { - "id": "water_name_point_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "water_name", - "minzoom": 7.0, - "maxzoom": 22.0, - "layout": { - "text-font": [ - "B612 Italic" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 8, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 12, - [ - 8, - 7 - ], - 10, - 10 - ], - 10, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 22, - [ - 8, - 7, - 6 - ], - 18, - [ - 5, - 4 - ], - 16, - [ - 3 - ], - 14, - [ - 2 - ], - 12, - [ - 1 - ], - 10, - 10 - ], - 12, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 24, - [ - 8, - 7 - ], - 22, - [ - 6, - 5, - 4, - 3 - ], - 20, - [ - 2 - ], - 16, - [ - 1 - ], - 12, - 12 - ], - 14, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 28, - [ - 8, - 7 - ], - 26, - [ - 6, - 5, - 4, - 3 - ], - 24, - [ - 2 - ], - 22, - [ - 1 - ], - 14, - 12 - ], - 15, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9 - ], - 30, - [ - 8, - 7 - ], - 28, - [ - 6, - 5, - 4, - 3 - ], - 26, - [ - 2 - ], - 24, - [ - 1 - ], - 18, - 18 - ] - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-rotate": [ - "get", - "direction" - ], - "text-padding": 2, - "symbol-spacing": 250, - "symbol-z-order": "auto", - "text-max-width": 20, - "symbol-placement": "point", - "text-keep-upright": true, - "text-allow-overlap": false, - "text-letter-spacing": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 7, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8 - ], - 0.1, - [ - 7, - 6 - ], - 0.04, - [ - 5, - 4, - 3 - ], - 0.02, - [ - 2 - ], - 0.01, - 0.05 - ], - 16, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8 - ], - 0.7, - [ - 7, - 6 - ], - 0.5, - [ - 5, - 4, - 3 - ], - 0.3, - [ - 2 - ], - 0.2, - 0.1 - ] - ], - "text-pitch-alignment": "map", - "text-ignore-placement": false, - "text-rotation-alignment": "viewport" - }, - "paint": { - "text-color": "rgba(20, 136, 205, 1)", - "text-opacity": [ - "step", - [ - "zoom" - ], - 0, - 7, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8 - ], - 1, - 0 - ], - 8, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8, - 7, - 6 - ], - 1, - 0 - ], - 9, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8, - 7, - 6, - 4, - 3 - ], - 1, - 0 - ], - 10, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8, - 7, - 6, - 5, - 4, - 3, - 2 - ], - 1, - 0 - ], - 12, - [ - "match", - [ - "get", - "size" - ], - [ - 10, - 9, - 8, - 7, - 6, - 5, - 4, - 3, - 2, - 1 - ], - 1, - 1 - ] - ], - "text-halo-blur": 0.25, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "==", - "class", - "lake" - ] - ] + "id": "_olyvAt6o8QUN9qePUZap", + "icon": "transport", + "name": "transportation", + "layers": [ + "road_number", + "transportation_label", + "aerialway", + "bridge-l2_public_transport", + "bridge-l2_road_path_footway", + "bridge-l2_road_track", + "bridge-l2_fill", + "bridge-l2_road_casing", + "bridge-l1_public_transport", + "bridge-l1_road_path_footway", + "bridge-l1_road_track", + "bridge-l1_fill", + "bridge-l1_road_casing", + "public_transport", + "ferry", + "car_ferry", + "road_fill", + "road_casing", + "road_path_footway", + "road_via_ferrata_trail", + "tunnel_road", + "tunnel_road_path_footway", + "tunnel_public_transport", + "aerodrome_label", + "aeroway_polygon_fill", + "aeroway_line_fill", + "aeroway_polygon_casing", + "aeroway_line_casing", + "landuse_parking", + "landuse_parking_outline" + ] }, { - "id": "park_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "park", - "minzoom": 8.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 8, - 14, - 16, - 28 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-padding": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 2, - 14, - 10 - ], - "symbol-z-order": [ - "literal", - "auto" - ] - }, - "paint": { - "text-color": "rgba(70, 130, 25, 0.9)", - "text-halo-blur": 1, - "text-halo-color": "rgba(255, 255, 255, 0.8)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "in", - "class", - "national_park" - ], - [ - "==", - "$type", - "Point" - ] - ] + "id": "z959Ue-RzB_dh5_EJgGry", + "icon": "administrative", + "name": "boundary", + "layers": ["boundary", "boundary_disputed", "park"] }, { - "id": "area_name_massif_label", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "area_name", - "minzoom": 11.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 10, - 14, - 16, - 23 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "symbol-spacing": { - "stops": [ - [ - 12, - 250 - ], - [ - 14, - 550 - ] - ] - }, - "symbol-z-order": "auto", - "text-max-width": 99999, - "symbol-placement": "point", - "text-keep-upright": true, - "symbol-avoid-edges": true, - "text-allow-overlap": false, - "text-letter-spacing": 0.07, - "text-pitch-alignment": "viewport", - "text-ignore-placement": false, - "text-rotation-alignment": "viewport" - }, - "paint": { - "text-color": "rgba(48, 48, 48, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "==", - "$type", - "Point" - ], - [ - "in", - "subclass", - "massif" - ] - ] + "id": "jQ4N1YUSpDNjoXrIHGNpp", + "icon": "water", + "name": "water", + "layers": [ + "waterway_line_label", + "lake_elevation", + "water_outline", + "water_line_intermittent", + "water_polygon", + "contour_line_water", + "water_line" + ] }, { - "id": "place_city", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 2.0, - "maxzoom": 14.0, - "layout": { - "icon-size": 1, - "text-font": [ - "B612 Bold" - ], - "text-size": [ - "interpolate", - [ - "cubic-bezier", - 0.5, - 0.1, - 0.7, - 1 - ], - [ - "zoom" - ], - 1, - 11, - 4, - 12, - 16, - 48 - ], - "icon-image": [ - "step", - [ - "zoom" - ], - "dot_circle_dark_grey_6", - 6, - "dot_circle_dark_grey_8", - 8, - "circle_circle_dark_grey_10", - 10, - "circle_circle_dark_grey_12", - 12, - "circle_circle_dark_grey_12" - ], - "text-field": [ - "get", - "name:latin" - ], - "visibility": "visible", - "text-anchor": "bottom-left", - "text-offset": [ - "literal", - [ - 0.35, - 0.1 - ] - ], - "text-justify": "auto", - "text-padding": 10, - "icon-optional": false, - "symbol-z-order": [ - "literal", - "auto" - ], - "text-max-width": 10, - "text-transform": "uppercase", - "symbol-sort-key": [ - "to-number", - [ - "get", - "rank" - ] - ], - "text-letter-spacing": 0.025 - }, - "paint": { - "text-color": "rgba(64, 64, 64, 1)", - "icon-opacity": [ - "step", - [ - "zoom" - ], - 1, - 11, - 0 - ], - "text-opacity": 1, - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - [ - "cubic-bezier", - 0, - 0.75, - 0.25, - 1 - ], - [ - "zoom" - ], - 12, - 1, - 16, - 3 - ] - }, - "filter": [ - "all", - [ - "==", - "class", - "city" - ] - ] + "id": "QZWB1txCT3r3H5wy13N86", + "icon": "nature", + "name": "land", + "layers": [ + "pattern_landcover_orchard", + "pattern_landcover_wetlands", + "pattern_landcover_vineyard", + "landcover", + "landcover_casing", + "landcover_pt", + "landuse_outline", + "landuse" + ] }, { - "id": "place_country_LI", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 0.0, - "maxzoom": 7.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 1, - 12, - 6, - 16 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-max-width": 10, - "text-transform": "uppercase", - "text-letter-spacing": 0.12 - }, - "paint": { - "text-color": "rgba(145, 70, 145, 0.9)", - "text-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 6, - 1, - 7, - 0 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(255, 255, 255, 0.8)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "in", - "class", - "country" - ], - [ - "in", - "iso_a2", - "LI" - ] - ] + "id": "terrain", + "icon": "terrain", + "name": "terrain", + "layers": [ + "hillshade_grey", + "hillshade_yellow", + "sinkhole", + "label_contour_line_100_brown", + "label_contour_line_100_blue", + "label_contour_line_100_grey", + "label_contour_line_20_brown", + "label_contour_line_20_blue", + "label_contour_line_20_grey", + "hachure", + "scree_z11", + "scree_z13", + "scree_z15", + "scree_z17", + "spot_elevation", + "contour_line" + ] }, { - "id": "place_country_CH", - "type": "symbol", - "source": "base_v1.0.0", - "source-layer": "place", - "minzoom": 0.0, - "maxzoom": 7.0, - "layout": { - "text-font": [ - "B612 Regular" - ], - "text-size": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 1, - 12, - 6, - 16 - ], - "text-field": "{name:latin}", - "visibility": "visible", - "text-max-width": 10, - "text-transform": "uppercase", - "text-letter-spacing": 0.12 - }, - "paint": { - "text-color": "rgba(145, 70, 145, 0.9)", - "text-opacity": [ - "interpolate", - [ - "linear" - ], - [ - "zoom" - ], - 6, - 1, - 7, - 0 - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(255, 255, 255, 0.8)", - "text-halo-width": 1 - }, - "filter": [ - "all", - [ - "in", - "class", - "country" - ], - [ - "in", - "iso_a2", - "CH" - ] - ] + "id": "background", + "icon": "background", + "name": "Background", + "layers": ["background"] } - ], - "metadata": { - "maptiler:template": { - "groups": [ - { - "id": "4rZcx2YUdbGIJ_xQaDQb6", - "icon": "variant2", - "name": "label", - "layers": [ - "place_country_CH", - "place_country_LI", - "place_city", - "area_name_massif_label", - "park_label", - "water_name_point_label", - "place_town", - "place_village", - "place_country_exclave", - "place_hamlet_isolated_dwelling", - "place_other", - "area_name_glacier_line_label", - "area_name_glacier_point_label" - ] - }, - { - "id": "spbW1YO3D6JmGqVeeVEo3", - "icon": "poi", - "name": "poi", - "layers": [ - "poi_rank1" - ] - }, - { - "id": "Egb2j0u2wyQyI8FftRcqF", - "icon": "terrain", - "name": "mountain_peak", - "layers": [ - "peaks_rank1", - "peaks_rank2", - "peaks_rank3", - "peaks_rank4", - "peaks_rank5", - "peaks_other" - ] - }, - { - "id": "o-n3H-7f0sOIKwDFxFRaG", - "icon": "builtUp", - "name": "infrastructure", - "layers": [ - "housenumber", - "building_2d_casing", - "building_2d", - "building_ln", - "construct", - "construct_line" - ] - }, - { - "id": "_olyvAt6o8QUN9qePUZap", - "icon": "transport", - "name": "transportation", - "layers": [ - "road_number", - "transportation_label", - "aerialway", - "bridge-l2_public_transport", - "bridge-l2_road_path_footway", - "bridge-l2_road_track", - "bridge-l2_fill", - "bridge-l2_road_casing", - "bridge-l1_public_transport", - "bridge-l1_road_path_footway", - "bridge-l1_road_track", - "bridge-l1_fill", - "bridge-l1_road_casing", - "public_transport", - "ferry", - "car_ferry", - "road_fill", - "road_casing", - "road_path_footway", - "road_via_ferrata_trail", - "tunnel_road", - "tunnel_road_path_footway", - "tunnel_public_transport", - "aerodrome_label", - "aeroway_polygon_fill", - "aeroway_line_fill", - "aeroway_polygon_casing", - "aeroway_line_casing", - "landuse_parking", - "landuse_parking_outline" - ] - }, - { - "id": "z959Ue-RzB_dh5_EJgGry", - "icon": "administrative", - "name": "boundary", - "layers": [ - "boundary", - "boundary_disputed", - "park" - ] - }, - { - "id": "jQ4N1YUSpDNjoXrIHGNpp", - "icon": "water", - "name": "water", - "layers": [ - "waterway_line_label", - "lake_elevation", - "water_outline", - "water_line_intermittent", - "water_polygon", - "contour_line_water", - "water_line" - ] - }, - { - "id": "QZWB1txCT3r3H5wy13N86", - "icon": "nature", - "name": "land", - "layers": [ - "pattern_landcover_orchard", - "pattern_landcover_wetlands", - "pattern_landcover_vineyard", - "landcover", - "landcover_casing", - "landcover_pt", - "landuse_outline", - "landuse" - ] - }, - { - "id": "terrain", - "icon": "terrain", - "name": "terrain", - "layers": [ - "hillshade_grey", - "hillshade_yellow", - "sinkhole", - "label_contour_line_100_brown", - "label_contour_line_100_blue", - "label_contour_line_100_grey", - "label_contour_line_20_brown", - "label_contour_line_20_blue", - "label_contour_line_20_grey", - "hachure", - "scree_z11", - "scree_z13", - "scree_z15", - "scree_z17", - "spot_elevation", - "contour_line" - ] - }, - { - "id": "background", - "icon": "background", - "name": "Background", - "layers": [ - "background" - ] - } - ], - "viewState": { - "mapType": "Style", - "activeBlock": null, - "toolPanelType": "Layers", - "selectedLayers": [ - "tunnel_road" - ], - "propertyPanelType": "Edit", - "editorFocusProperty": null, - "layersViewPanelType": "Verticality" - }, - "userSettings": { - "preferredViewPanelType": "Verticality" - } - }, - "ga:version": "v1.17.0", - "ga:publisher": "CI:597e6ccf-63c7-4a22-9279-940877bf6866", - "ga:branch": "master" + ], + "viewState": { + "mapType": "Style", + "activeBlock": null, + "toolPanelType": "Layers", + "selectedLayers": ["tunnel_road"], + "propertyPanelType": "Edit", + "editorFocusProperty": null, + "layersViewPanelType": "Verticality" + }, + "userSettings": { + "preferredViewPanelType": "Verticality" + } }, - "glyphs": "/map/fonts/{fontstack}/{range}.pbf", - "sprite": [ - { - "id": "default", - "url": "/map/sprites/basemap" - }, - { - "id": "babs", - "url": "/map/sprites/babs" - } - ], - "bearing": 0.0, - "pitch": 0.0, - "center": [ - 8.349961425056108, - 46.81133904939108 - ], - "zoom": 7.2512975045452235, - "transition": {} -} \ No newline at end of file + "ga:version": "v1.17.0", + "ga:publisher": "CI:597e6ccf-63c7-4a22-9279-940877bf6866", + "ga:branch": "master" + }, + "glyphs": "/map/fonts/{fontstack}/{range}.pbf", + "sprite": [ + { + "id": "default", + "url": "/map/sprites/basemap" + }, + { + "id": "babs", + "url": "/map/sprites/babs" + } + ], + "bearing": 0.0, + "pitch": 0.0, + "center": [8.349961425056108, 46.81133904939108], + "zoom": 7.2512975045452235, + "transition": {} +} diff --git a/ui/src/cache.tsx b/ui/src/cache.tsx index 3ac5c7c1..b24ba62c 100644 --- a/ui/src/cache.tsx +++ b/ui/src/cache.tsx @@ -3,20 +3,18 @@ import { InMemoryCache, makeVar } from "@apollo/client"; // active Incident export const activeIncidentVar = makeVar(""); - -export const cache: InMemoryCache = new InMemoryCache( - // { - // typePolicies: { - // Layers: { - // fields: { - // isActive: { - // read(_, { readField }) { - // const layerId = readField('id'); - // return layerId === activeLayerVar() - // } - // } - // } - // } - // } - // } -); \ No newline at end of file +export const cache: InMemoryCache = new InMemoryCache(); +// { +// typePolicies: { +// Layers: { +// fields: { +// isActive: { +// read(_, { readField }) { +// const layerId = readField('id'); +// return layerId === activeLayerVar() +// } +// } +// } +// } +// } +// } diff --git a/ui/src/client.tsx b/ui/src/client.tsx index 1622d0d0..1ac59a58 100644 --- a/ui/src/client.tsx +++ b/ui/src/client.tsx @@ -1,6 +1,6 @@ import { ApolloClient } from "@apollo/client"; import { HttpLink } from "@apollo/client"; -import { cache } from 'cache'; +import { cache } from "cache"; const httpLink = new HttpLink({ uri: import.meta.env.VITE_API_URL, @@ -17,6 +17,4 @@ const client = new ApolloClient({ // }, }); - - export default client; diff --git a/ui/src/components/index.tsx b/ui/src/components/index.tsx index 7b53f93d..940ed3e1 100644 --- a/ui/src/components/index.tsx +++ b/ui/src/components/index.tsx @@ -1,4 +1,3 @@ export { default as Footer } from "./Footer"; export { default as Navbar } from "./Navbar"; export { default as Spinner } from "./Spinner"; - diff --git a/ui/src/i18n/index.ts b/ui/src/i18n/index.ts index ff7af777..16d0380a 100644 --- a/ui/src/i18n/index.ts +++ b/ui/src/i18n/index.ts @@ -1,43 +1,42 @@ -import i18n from 'i18next'; -import { initReactI18next } from 'react-i18next'; +import i18n from "i18next"; +import { initReactI18next } from "react-i18next"; -import LanguageDetector from 'i18next-browser-languagedetector'; - -import { de, en, fr, it } from './locales'; +import LanguageDetector from "i18next-browser-languagedetector"; +import { de, en, fr, it } from "./locales"; i18n - .use(LanguageDetector) - .use(initReactI18next) - .init({ - fallbackLng: 'de', - resources: { - en: { - translations: en, - }, - de: { - translations: de, - }, - fr: { - translations: fr, - }, - it: { - translations: it, - } - }, - ns: ['translations'], - defaultNS: 'translations', - detection: { - // order and from where user language should be detected - order: ['querystring', 'sessionStorage', 'localStorage', 'navigator'], - lookupQuerystring: 'lang', - caches: ['sessionStorage', 'localStorage'], - lookupSessionStorage: 'lang', - lookupLocalStorage: "lang", - excludeCacheFor: ['cimode'], // languages to not persist (cookie, localStorage) - } - }); + .use(LanguageDetector) + .use(initReactI18next) + .init({ + fallbackLng: "de", + resources: { + en: { + translations: en, + }, + de: { + translations: de, + }, + fr: { + translations: fr, + }, + it: { + translations: it, + }, + }, + ns: ["translations"], + defaultNS: "translations", + detection: { + // order and from where user language should be detected + order: ["querystring", "sessionStorage", "localStorage", "navigator"], + lookupQuerystring: "lang", + caches: ["sessionStorage", "localStorage"], + lookupSessionStorage: "lang", + lookupLocalStorage: "lang", + excludeCacheFor: ["cimode"], // languages to not persist (cookie, localStorage) + }, + }); -i18n.languages = ['de', 'en', 'fr', 'it']; +i18n.languages = ["de", "en", "fr", "it"]; -export default i18n; \ No newline at end of file +export default i18n; diff --git a/ui/src/i18n/locales/index.ts b/ui/src/i18n/locales/index.ts index e6543bdc..3a61d3b5 100644 --- a/ui/src/i18n/locales/index.ts +++ b/ui/src/i18n/locales/index.ts @@ -1,8 +1,6 @@ -import de from './de/translations.json'; -import en from './en/translations.json'; -import fr from './fr/translations.json'; -import it from './it/translations.json'; +import de from "./de/translations.json"; +import en from "./en/translations.json"; +import fr from "./fr/translations.json"; +import it from "./it/translations.json"; -export { - de, en, fr, it -}; +export { de, en, fr, it }; diff --git a/ui/src/setupTests.ts b/ui/src/setupTests.ts index 2bc203de..480bdedd 100644 --- a/ui/src/setupTests.ts +++ b/ui/src/setupTests.ts @@ -1,13 +1,13 @@ -import '@testing-library/jest-dom'; +import "@testing-library/jest-dom"; import * as matchers from "@testing-library/jest-dom/matchers"; -import { cleanup } from '@testing-library/react'; -import { afterEach, expect } from 'vitest'; +import { cleanup } from "@testing-library/react"; +import { afterEach, expect } from "vitest"; // extends Vitest's expect method with methods from react-testing-library expect.extend(matchers); // runs a cleanup after each test case (e.g. clearing jsdom) afterEach(() => { - cleanup(); -}); \ No newline at end of file + cleanup(); +}); diff --git a/ui/src/types/index.ts b/ui/src/types/index.ts index 603cf558..74fbb0c0 100644 --- a/ui/src/types/index.ts +++ b/ui/src/types/index.ts @@ -1,12 +1,17 @@ export type { Incident, IncidentDetailsData, IncidentDetailsVars, IncidentListData, Location } from "types/incident"; export { Medium, PriorityStatus, TriageStatus } from "types/journal"; export type { - Division, DivisionList, Journal, + Division, + DivisionList, + Journal, JournalListData, - JournalListVars, Message, MessageListData, - MessageListVars, Priority, Triage, TriageMessageData, - TriageMessageVars + JournalListVars, + Message, + MessageListData, + MessageListVars, + Priority, + Triage, + TriageMessageData, + TriageMessageVars, } from "types/journal"; export type { UserState } from "types/user"; - - diff --git a/ui/src/utils/Notification.tsx b/ui/src/utils/Notification.tsx index 230bebb4..36997a2d 100644 --- a/ui/src/utils/Notification.tsx +++ b/ui/src/utils/Notification.tsx @@ -1,44 +1,44 @@ import classNames from "classnames"; import { memo, useState } from "react"; -import { useTimeout } from 'usehooks-ts'; +import { useTimeout } from "usehooks-ts"; interface NotificationProps { - children: React.ReactNode; - type: NotificationType; - timeout: number | null; + children: React.ReactNode; + type: NotificationType; + timeout: number | null; } type NotificationType = "warning" | "info" | "error" | "primary" | "link" | "success"; function Notification(props: NotificationProps) { - const { type, timeout, children } = props; - - const [visible, setVisible] = useState(true) - const hide = () => setVisible(false) - - useTimeout(hide, timeout); - - const notificationClass = classNames({ - notification: true, - 'is-warning': type === "warning", - 'is-info': type === "info", - 'is-danger': type === "error", - 'is-primary': type === "primary", - 'is-link': type === "link", - 'is-success': type === "success", - }); - - if (!visible) return null; - return ( -
- - {children} -
- ) + const { type, timeout, children } = props; + + const [visible, setVisible] = useState(true); + const hide = () => setVisible(false); + + useTimeout(hide, timeout); + + const notificationClass = classNames({ + notification: true, + "is-warning": type === "warning", + "is-info": type === "info", + "is-danger": type === "error", + "is-primary": type === "primary", + "is-link": type === "link", + "is-success": type === "success", + }); + + if (!visible) return null; + return ( +
+ + {children} +
+ ); } Notification.defaultProps = { - className: "notification is-info", - timeout: 5000, -} + className: "notification is-info", + timeout: 5000, +}; -export default memo(Notification); \ No newline at end of file +export default memo(Notification); diff --git a/ui/src/utils/useDate.tsx b/ui/src/utils/useDate.tsx index a9f607c8..381e7171 100644 --- a/ui/src/utils/useDate.tsx +++ b/ui/src/utils/useDate.tsx @@ -2,22 +2,22 @@ import dayjs from "dayjs"; import { useEffect, useState } from "react"; export const useDate = () => { - const [now, setNow] = useState(new Date()); - useEffect(() => { - const timer = setInterval(() => { - setNow(new Date()); - }, 1 * 1000); - return () => { - clearInterval(timer); - } - }, []); + const [now, setNow] = useState(new Date()); + useEffect(() => { + const timer = setInterval(() => { + setNow(new Date()); + }, 1 * 1000); + return () => { + clearInterval(timer); + }; + }, []); - const date = dayjs(now).format("LL") - const time = dayjs(now).format("LT") + const date = dayjs(now).format("LL"); + const time = dayjs(now).format("LT"); - return { - now, - date, - time, - }; -} \ No newline at end of file + return { + now, + date, + time, + }; +}; diff --git a/ui/src/views/incident/Dashboard.tsx b/ui/src/views/incident/Dashboard.tsx index 38b1c338..418b49a9 100644 --- a/ui/src/views/incident/Dashboard.tsx +++ b/ui/src/views/incident/Dashboard.tsx @@ -25,7 +25,6 @@ function MapFrame() { ); } - function Dashboard() { const { incidentId } = useParams(); diff --git a/ui/src/views/incident/Editor.tsx b/ui/src/views/incident/Editor.tsx index 1067ddb6..87ee6a52 100644 --- a/ui/src/views/incident/Editor.tsx +++ b/ui/src/views/incident/Editor.tsx @@ -20,7 +20,7 @@ function Editor() { return ( <> -

{t('editIncident')}

+

{t("editIncident")}

diff --git a/ui/src/views/incident/index.tsx b/ui/src/views/incident/index.tsx index aebe03b4..dd67b843 100644 --- a/ui/src/views/incident/index.tsx +++ b/ui/src/views/incident/index.tsx @@ -2,4 +2,3 @@ export { default as Dashboard } from "./Dashboard"; export { default as Editor } from "./Editor"; export { default as List } from "./List"; export { default as New } from "./New"; - diff --git a/ui/src/views/journal/EditorForms/Email.tsx b/ui/src/views/journal/EditorForms/Email.tsx index 2ffe599e..e20a0c74 100644 --- a/ui/src/views/journal/EditorForms/Email.tsx +++ b/ui/src/views/journal/EditorForms/Email.tsx @@ -1,61 +1,68 @@ import { t } from "i18next"; -import { ContentInput, ReceiverDetailInput, ReceiverInput, SaveButton, SenderDetailInput, SenderInput, TimeInput } from "./Elements"; +import { + ContentInput, + ReceiverDetailInput, + ReceiverInput, + SaveButton, + SenderDetailInput, + SenderInput, + TimeInput, +} from "./Elements"; export function Email() { + return ( +
+
+
+ +
+
+
+ + +
+
+
+
+
+ +
+
+
+ + +
+
+
- return ( -
-
-
- -
-
-
- - -
-
-
-
-
- -
-
-
- - -
-
-
- -
-
- -
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
- -
-
-
-
- ); -} \ No newline at end of file +
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+ ); +} diff --git a/ui/src/views/journal/EditorForms/Other.tsx b/ui/src/views/journal/EditorForms/Other.tsx index 1468336f..bf935cf1 100644 --- a/ui/src/views/journal/EditorForms/Other.tsx +++ b/ui/src/views/journal/EditorForms/Other.tsx @@ -1,61 +1,68 @@ import { t } from "i18next"; -import { ContentInput, ReceiverDetailInput, ReceiverInput, SaveButton, SenderDetailInput, SenderInput, TimeInput } from "./Elements"; +import { + ContentInput, + ReceiverDetailInput, + ReceiverInput, + SaveButton, + SenderDetailInput, + SenderInput, + TimeInput, +} from "./Elements"; export function Other() { + return ( +
+
+
+ +
+
+
+ + +
+
+
+
+
+ +
+
+
+ + +
+
+
- return ( -
-
-
- -
-
-
- - -
-
-
-
-
- -
-
-
- - -
-
-
- -
-
- -
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
- -
-
-
-
- ); -} \ No newline at end of file +
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+ ); +} diff --git a/ui/src/views/journal/EditorForms/Phone.tsx b/ui/src/views/journal/EditorForms/Phone.tsx index fa88a5c8..0d045d34 100644 --- a/ui/src/views/journal/EditorForms/Phone.tsx +++ b/ui/src/views/journal/EditorForms/Phone.tsx @@ -1,60 +1,67 @@ import { t } from "i18next"; -import { ContentInput, ReceiverDetailInput, ReceiverInput, SaveButton, SenderDetailInput, SenderInput, TimeInput } from "./Elements"; +import { + ContentInput, + ReceiverDetailInput, + ReceiverInput, + SaveButton, + SenderDetailInput, + SenderInput, + TimeInput, +} from "./Elements"; export function Phone() { - - return ( -
-
-
- -
-
-
- - -
-
-
-
-
- -
-
-
- - -
-
-
-
-
- -
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
- -
-
-
-
- ); -} \ No newline at end of file + return ( +
+
+
+ +
+
+
+ + +
+
+
+
+
+ +
+
+
+ + +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+ ); +} diff --git a/ui/src/views/journal/EditorForms/Radio.tsx b/ui/src/views/journal/EditorForms/Radio.tsx index 5c4ede43..1a2bfd59 100644 --- a/ui/src/views/journal/EditorForms/Radio.tsx +++ b/ui/src/views/journal/EditorForms/Radio.tsx @@ -2,57 +2,56 @@ import { t } from "i18next"; import { ContentInput, ReceiverInput, SaveButton, SenderInput, TimeInput } from "./Elements"; export function Radio() { - - return ( -
-
-
- -
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
- -
-
-
-
- ); -} \ No newline at end of file + return ( +
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+ ); +} diff --git a/ui/src/views/journal/EditorForms/index.ts b/ui/src/views/journal/EditorForms/index.ts index f3a16596..caa19693 100644 --- a/ui/src/views/journal/EditorForms/index.ts +++ b/ui/src/views/journal/EditorForms/index.ts @@ -2,6 +2,4 @@ import { Email } from "./Email"; import { Phone } from "./Phone"; import { Radio } from "./Radio"; -export { - Radio, Phone, Email -}; +export { Radio, Phone, Email }; diff --git a/ui/src/views/journal/New.tsx b/ui/src/views/journal/New.tsx index 4c3a896c..4d99e908 100644 --- a/ui/src/views/journal/New.tsx +++ b/ui/src/views/journal/New.tsx @@ -13,7 +13,7 @@ function New() { return ( <> -

{t('createJournal')}

+

{t("createJournal")}

@@ -27,7 +27,6 @@ function NewForm() { const navigate = useNavigate(); const { t } = useTranslation(); - const [insertJournal, { error }] = useMutation(InsertJournal, { onCompleted(data) { // reset the form values @@ -57,7 +56,7 @@ function NewForm() { className="input" type="text" value={name} - placeholder={t('name') as string} + placeholder={t("name") as string} onChange={(e) => { e.preventDefault(); setName(e.target.value); @@ -71,7 +70,7 @@ function NewForm() {

diff --git a/ui/src/views/journal/Table.tsx b/ui/src/views/journal/Table.tsx index 7dbc8404..9add686d 100644 --- a/ui/src/views/journal/Table.tsx +++ b/ui/src/views/journal/Table.tsx @@ -4,26 +4,33 @@ import { useTranslation } from "react-i18next"; import ReactMarkdown from "react-markdown"; import { Message } from "types"; -function MessageTable(props: { messages: undefined | Message[], assignmentFilter: string, triageFilter: string, priorityFilter: string }) { +function MessageTable(props: { + messages: undefined | Message[]; + assignmentFilter: string; + triageFilter: string; + priorityFilter: string; +}) { const { t } = useTranslation(); const { assignmentFilter, priorityFilter, triageFilter } = props; return (
-

{t('journal')} - {assignmentFilter === "all" && triageFilter === "all" && priorityFilter === "all" ? <> : - " (gefiltert)"} +

+ {t("journal")} + {assignmentFilter === "all" && triageFilter === "all" && priorityFilter === "all" ? <> : " (gefiltert)"}

-
{t('state')}: {dayjs(Date.now()).format("LLL")}
+
+ {t("state")}: {dayjs(Date.now()).format("LLL")} +
- - - - + + + + @@ -34,9 +41,7 @@ function MessageTable(props: { messages: undefined | Message[], assignmentFilter @@ -48,8 +53,7 @@ function MessageTable(props: { messages: undefined | Message[], assignmentFilter ); } -function FilterState(props: { assignmentFilter: string, triageFilter: string, priorityFilter: string }) { - +function FilterState(props: { assignmentFilter: string; triageFilter: string; priorityFilter: string }) { const { assignmentFilter, priorityFilter, triageFilter } = props; const { t } = useTranslation(); @@ -58,12 +62,25 @@ function FilterState(props: { assignmentFilter: string, triageFilter: string, pr } return ( -
Filter: - {assignmentFilter !== "all" &&

{t('divisions')}: {assignmentFilter}

} - {priorityFilter !== "all" &&

{t('message.priority')}: {t(`priority.${priorityFilter}`)}

} - {triageFilter !== "all" &&

{t('message.triage')}: {t(`triage.${triageFilter}`)}

} +
+ Filter: + {assignmentFilter !== "all" && ( +

+ {t("divisions")}: {assignmentFilter} +

+ )} + {priorityFilter !== "all" && ( +

+ {t("message.priority")}: {t(`priority.${priorityFilter}`)} +

+ )} + {triageFilter !== "all" && ( +

+ {t("message.triage")}: {t(`triage.${triageFilter}`)} +

+ )}
- ) + ); } export default memo(MessageTable); diff --git a/ui/src/views/journal/index.tsx b/ui/src/views/journal/index.tsx index a6b3370d..c837feca 100644 --- a/ui/src/views/journal/index.tsx +++ b/ui/src/views/journal/index.tsx @@ -3,4 +3,3 @@ export { default as List } from "./List"; export { default as Message } from "./Message"; export { default as New } from "./New"; export { default as Overview } from "./Overview"; - diff --git a/ui/src/views/map/DrawModes/Rotate.js b/ui/src/views/map/DrawModes/Rotate.js index da56b466..612de991 100644 --- a/ui/src/views/map/DrawModes/Rotate.js +++ b/ui/src/views/map/DrawModes/Rotate.js @@ -973,4 +973,4 @@ // SRMode.onTrash = function () { // this.deleteFeature(this.getSelectedIds()); // // this.fireActionable(); -// }; \ No newline at end of file +// }; diff --git a/ui/src/views/map/Map.scss b/ui/src/views/map/Map.scss index a70681e9..78db129b 100644 --- a/ui/src/views/map/Map.scss +++ b/ui/src/views/map/Map.scss @@ -1,130 +1,129 @@ @import "maplibre-gl/dist/maplibre-gl"; .maplibregl-map { - min-height: 79vh; + min-height: 79vh; } .maplibregl-ctrl-bottom-right .maplibregl-ctrl { - float: right; - margin: 0 10px px 30px 0; + float: right; + margin: 0 10px px 30px 0; } .mapboxgl-ctrl-group { - @extend .maplibregl-ctrl-group !optional; + @extend .maplibregl-ctrl-group !optional; } .mapboxgl-ctrl { - @extend .maplibregl-ctrl !optional; + @extend .maplibregl-ctrl !optional; } - /* Override default control style */ .mapbox-gl-draw_ctrl-bottom-left, .mapbox-gl-draw_ctrl-top-left { - margin-left: 0; - border-radius: 0 4px 4px 0; + margin-left: 0; + border-radius: 0 4px 4px 0; } .mapbox-gl-draw_ctrl-top-right, .mapbox-gl-draw_ctrl-bottom-right { - margin-right: 0; - border-radius: 4px 0 0 4px; + margin-right: 0; + border-radius: 4px 0 0 4px; } .mapbox-gl-draw_ctrl-draw-btn { - border-color: rgba(0, 0, 0, 0.9); - color: rgba(255, 255, 255, 0.5); - width: 30px; - height: 30px; + border-color: rgba(0, 0, 0, 0.9); + color: rgba(255, 255, 255, 0.5); + width: 30px; + height: 30px; } .mapbox-gl-draw_ctrl-draw-btn.active, .mapbox-gl-draw_ctrl-draw-btn.active:hover { - background-color: rgb(0 0 0/5%); + background-color: rgb(0 0 0/5%); } .mapbox-gl-draw_ctrl-draw-btn { - background-repeat: no-repeat; - background-position: center; + background-repeat: no-repeat; + background-position: center; } .mapbox-gl-draw_point { - background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m10 2c-3.3 0-6 2.7-6 6s6 9 6 9 6-5.7 6-9-2.7-6-6-6zm0 2c2.1 0 3.8 1.7 3.8 3.8 0 1.5-1.8 3.9-2.9 5.2h-1.7c-1.1-1.4-2.9-3.8-2.9-5.2-.1-2.1 1.6-3.8 3.7-3.8z"/>%3C/svg>'); + background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m10 2c-3.3 0-6 2.7-6 6s6 9 6 9 6-5.7 6-9-2.7-6-6-6zm0 2c2.1 0 3.8 1.7 3.8 3.8 0 1.5-1.8 3.9-2.9 5.2h-1.7c-1.1-1.4-2.9-3.8-2.9-5.2-.1-2.1 1.6-3.8 3.7-3.8z"/>%3C/svg>'); } .mapbox-gl-draw_polygon { - background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m15 12.3v-4.6c.6-.3 1-1 1-1.7 0-1.1-.9-2-2-2-.7 0-1.4.4-1.7 1h-4.6c-.3-.6-1-1-1.7-1-1.1 0-2 .9-2 2 0 .7.4 1.4 1 1.7v4.6c-.6.3-1 1-1 1.7 0 1.1.9 2 2 2 .7 0 1.4-.4 1.7-1h4.6c.3.6 1 1 1.7 1 1.1 0 2-.9 2-2 0-.7-.4-1.4-1-1.7zm-8-.3v-4l1-1h4l1 1v4l-1 1h-4z"/>%3C/svg>'); + background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m15 12.3v-4.6c.6-.3 1-1 1-1.7 0-1.1-.9-2-2-2-.7 0-1.4.4-1.7 1h-4.6c-.3-.6-1-1-1.7-1-1.1 0-2 .9-2 2 0 .7.4 1.4 1 1.7v4.6c-.6.3-1 1-1 1.7 0 1.1.9 2 2 2 .7 0 1.4-.4 1.7-1h4.6c.3.6 1 1 1.7 1 1.1 0 2-.9 2-2 0-.7-.4-1.4-1-1.7zm-8-.3v-4l1-1h4l1 1v4l-1 1h-4z"/>%3C/svg>'); } .mapbox-gl-draw_line { - background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m13.5 3.5c-1.4 0-2.5 1.1-2.5 2.5 0 .3 0 .6.2.9l-3.8 3.8c-.3-.1-.6-.2-.9-.2-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5c0-.3 0-.6-.2-.9l3.8-3.8c.3.1.6.2.9.2 1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5z"/>%3C/svg>'); + background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m13.5 3.5c-1.4 0-2.5 1.1-2.5 2.5 0 .3 0 .6.2.9l-3.8 3.8c-.3-.1-.6-.2-.9-.2-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5c0-.3 0-.6-.2-.9l3.8-3.8c.3.1.6.2.9.2 1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5z"/>%3C/svg>'); } .mapbox-gl-draw_trash { - background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="M10,3.4 c-0.8,0-1.5,0.5-1.8,1.2H5l-1,1v1h12v-1l-1-1h-3.2C11.5,3.9,10.8,3.4,10,3.4z M5,8v7c0,1,1,2,2,2h6c1,0,2-1,2-2V8h-2v5.5h-1.5V8h-3 v5.5H7V8H5z"/>%3C/svg>'); + background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="M10,3.4 c-0.8,0-1.5,0.5-1.8,1.2H5l-1,1v1h12v-1l-1-1h-3.2C11.5,3.9,10.8,3.4,10,3.4z M5,8v7c0,1,1,2,2,2h6c1,0,2-1,2-2V8h-2v5.5h-1.5V8h-3 v5.5H7V8H5z"/>%3C/svg>'); } .mapbox-gl-draw_uncombine { - background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m12 2c-.3 0-.5.1-.7.3l-1 1c-.4.4-.4 1 0 1.4l1 1c.4.4 1 .4 1.4 0l1-1c.4-.4.4-1 0-1.4l-1-1c-.2-.2-.4-.3-.7-.3zm4 4c-.3 0-.5.1-.7.3l-1 1c-.4.4-.4 1 0 1.4l1 1c.4.4 1 .4 1.4 0l1-1c.4-.4.4-1 0-1.4l-1-1c-.2-.2-.4-.3-.7-.3zm-7 1c-1 0-1 1-.5 1.5.3.3 1 1 1 1l-1 1s-.5.5 0 1 1 0 1 0l1-1 1 1c.5.5 1.5.5 1.5-.5v-4zm-5 3c-.3 0-.5.1-.7.3l-1 1c-.4.4-.4 1 0 1.4l4.9 4.9c.4.4 1 .4 1.4 0l1-1c.4-.4.4-1 0-1.4l-4.9-4.9c-.1-.2-.4-.3-.7-.3z"/>%3C/svg>'); + background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="m12 2c-.3 0-.5.1-.7.3l-1 1c-.4.4-.4 1 0 1.4l1 1c.4.4 1 .4 1.4 0l1-1c.4-.4.4-1 0-1.4l-1-1c-.2-.2-.4-.3-.7-.3zm4 4c-.3 0-.5.1-.7.3l-1 1c-.4.4-.4 1 0 1.4l1 1c.4.4 1 .4 1.4 0l1-1c.4-.4.4-1 0-1.4l-1-1c-.2-.2-.4-.3-.7-.3zm-7 1c-1 0-1 1-.5 1.5.3.3 1 1 1 1l-1 1s-.5.5 0 1 1 0 1 0l1-1 1 1c.5.5 1.5.5 1.5-.5v-4zm-5 3c-.3 0-.5.1-.7.3l-1 1c-.4.4-.4 1 0 1.4l4.9 4.9c.4.4 1 .4 1.4 0l1-1c.4-.4.4-1 0-1.4l-4.9-4.9c-.1-.2-.4-.3-.7-.3z"/>%3C/svg>'); } .mapbox-gl-draw_combine { - background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="M12.1,2c-0.3,0-0.5,0.1-0.7,0.3l-1,1c-0.4,0.4-0.4,1,0,1.4l4.9,4.9c0.4,0.4,1,0.4,1.4,0l1-1 c0.4-0.4,0.4-1,0-1.4l-4.9-4.9C12.6,2.1,12.3,2,12.1,2z M8,8C7,8,7,9,7.5,9.5c0.3,0.3,1,1,1,1l-1,1c0,0-0.5,0.5,0,1s1,0,1,0l1-1l1,1 C11,13,12,13,12,12V8H8z M4,10c-0.3,0-0.5,0.1-0.7,0.3l-1,1c-0.4,0.4-0.4,1,0,1.4l1,1c0.4,0.4,1,0.4,1.4,0l1-1c0.4-0.4,0.4-1,0-1.4 l-1-1C4.5,10.1,4.3,10,4,10z M8,14c-0.3,0-0.5,0.1-0.7,0.3l-1,1c-0.4,0.4-0.4,1,0,1.4l1,1c0.4,0.4,1,0.4,1.4,0l1-1 c0.4-0.4,0.4-1,0-1.4l-1-1C8.5,14.1,8.3,14,8,14z"/>%3C/svg>'); + background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20">%3Cpath d="M12.1,2c-0.3,0-0.5,0.1-0.7,0.3l-1,1c-0.4,0.4-0.4,1,0,1.4l4.9,4.9c0.4,0.4,1,0.4,1.4,0l1-1 c0.4-0.4,0.4-1,0-1.4l-4.9-4.9C12.6,2.1,12.3,2,12.1,2z M8,8C7,8,7,9,7.5,9.5c0.3,0.3,1,1,1,1l-1,1c0,0-0.5,0.5,0,1s1,0,1,0l1-1l1,1 C11,13,12,13,12,12V8H8z M4,10c-0.3,0-0.5,0.1-0.7,0.3l-1,1c-0.4,0.4-0.4,1,0,1.4l1,1c0.4,0.4,1,0.4,1.4,0l1-1c0.4-0.4,0.4-1,0-1.4 l-1-1C4.5,10.1,4.3,10,4,10z M8,14c-0.3,0-0.5,0.1-0.7,0.3l-1,1c-0.4,0.4-0.4,1,0,1.4l1,1c0.4,0.4,1,0.4,1.4,0l1-1 c0.4-0.4,0.4-1,0-1.4l-1-1C8.5,14.1,8.3,14,8,14z"/>%3C/svg>'); } .maplibre-map.mouse-pointer .maplibre-canvas-container.maplibre-interactive { - cursor: pointer; + cursor: pointer; } .maplibre-map.mouse-move .maplibre-canvas-container.maplibre-interactive { - cursor: move; + cursor: move; } .maplibre-map.mouse-add .maplibre-canvas-container.maplibre-interactive { - cursor: crosshair; + cursor: crosshair; } .maplibre-map.mouse-move.mode-direct_select .maplibre-canvas-container.maplibre-interactive { - cursor: grab; - cursor: -moz-grab; - cursor: -webkit-grab; + cursor: grab; + cursor: -moz-grab; + cursor: -webkit-grab; } .maplibre-map.mode-simple_select.feature-feature.mouse-none .maplibre-canvas-container.maplibre-interactive { - cursor: default !important; + cursor: default !important; } .maplibre-map.mode-direct_select.feature-vertex.mouse-move .maplibre-canvas-container.maplibre-interactive { - cursor: move; + cursor: move; } .maplibre-map.mode-direct_select.feature-midpoint.mouse-pointer .maplibre-canvas-container.maplibre-interactive { - cursor: cell; + cursor: cell; } .maplibre-map.mode-direct_select.feature-feature.mouse-move .maplibre-canvas-container.maplibre-interactive { - cursor: move; + cursor: move; } .maplibre-map.mode-static.mouse-pointer .maplibre-canvas-container.maplibre-interactive { - cursor: grab; - cursor: -moz-grab; - cursor: -webkit-grab; + cursor: grab; + cursor: -moz-grab; + cursor: -webkit-grab; } .mapbox-gl-draw_boxselect { - pointer-events: none; - position: absolute; - top: 0; - left: 0; - width: 0; - height: 0; - background: rgba(0, 0, 0, .1); - border: 2px dotted #fff; - opacity: 0.5; + pointer-events: none; + position: absolute; + top: 0; + left: 0; + width: 0; + height: 0; + background: rgba(0, 0, 0, 0.1); + border: 2px dotted #fff; + opacity: 0.5; } .maplibre-canvas-container.maplibre-interactive, .maplibre-canvas-container.maplibre-interactive:active { - cursor: default; -} \ No newline at end of file + cursor: default; +} diff --git a/ui/src/views/map/Notes.md b/ui/src/views/map/Notes.md index c4d279d4..a8d10e58 100644 --- a/ui/src/views/map/Notes.md +++ b/ui/src/views/map/Notes.md @@ -1,8 +1,6 @@ - - ## WMTS Service https://wmts.geo.admin.ch/1.0.0/WMTSCapabilities.xml https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml for WGS84/Pseudo-Mercator projector -Layername: ch.swisstopo.swisstlm3d-karte-farbe \ No newline at end of file +Layername: ch.swisstopo.swisstlm3d-karte-farbe diff --git a/ui/src/views/map/control-panel.css b/ui/src/views/map/control-panel.css index 3538aedb..e8ada8c4 100644 --- a/ui/src/views/map/control-panel.css +++ b/ui/src/views/map/control-panel.css @@ -1,19 +1,19 @@ .control-panel { - font-family: "Open Sans"; - font-size: 14px; - line-height: 18px; - background: #fff; - min-height: 200px; - min-width: 400px; - margin-right: 50px; - margin-top: 10px; - margin-left: 50px; - padding: 20px 20px 20px 20px !important; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.15); - display: block; - padding: 0; - outline: none; - border: 0; - box-sizing: border-box; - cursor: pointer; -} \ No newline at end of file + font-family: "Open Sans"; + font-size: 14px; + line-height: 18px; + background: #fff; + min-height: 200px; + min-width: 400px; + margin-right: 50px; + margin-top: 10px; + margin-left: 50px; + padding: 20px 20px 20px 20px !important; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.15); + display: block; + padding: 0; + outline: none; + border: 0; + box-sizing: border-box; + cursor: pointer; +} diff --git a/ui/src/views/map/controls/BabsIconController.scss b/ui/src/views/map/controls/BabsIconController.scss index 8830de0b..867d38de 100644 --- a/ui/src/views/map/controls/BabsIconController.scss +++ b/ui/src/views/map/controls/BabsIconController.scss @@ -1,11 +1,11 @@ .maplibregl-ctrl-group { - button { - width: 35px; - height: 35px; - } + button { + width: 35px; + height: 35px; + } } .control-panel { - min-height: 10%; - min-width: 20%; -} \ No newline at end of file + min-height: 10%; + min-width: 20%; +} diff --git a/ui/src/views/map/controls/LayerControl.scss b/ui/src/views/map/controls/LayerControl.scss index ad288976..99e8982d 100644 --- a/ui/src/views/map/controls/LayerControl.scss +++ b/ui/src/views/map/controls/LayerControl.scss @@ -1,37 +1,37 @@ .maplibregl-layer-list { - background: none; - border: none; - cursor: pointer; - display: block; - font-size: 11px; - padding: 5px; - text-align: right; - // width: 100%; - height: auto; - block-size: fit-content; - width: fit-content; - margin-right: 50px; + background: none; + border: none; + cursor: pointer; + display: block; + font-size: 11px; + padding: 5px; + text-align: right; + // width: 100%; + height: auto; + block-size: fit-content; + width: fit-content; + margin-right: 50px; - button.active { - font-weight: bold; - } + button.active { + font-weight: bold; + } - button:hover { - font-weight: bold; - color: black; - } + button:hover { + font-weight: bold; + color: black; + } - button:focus { - font-weight: bold; - color: black; - } + button:focus { + font-weight: bold; + color: black; + } - button { - // border-top: 1px solid #ddd; - // padding: 5px; - text-align: right; - border: none; - block-size: fit-content; - width: 100%; - } -} \ No newline at end of file + button { + // border-top: 1px solid #ddd; + // padding: 5px; + text-align: right; + border: none; + block-size: fit-content; + width: 100%; + } +} diff --git a/ui/src/views/map/controls/LayerControl.tsx b/ui/src/views/map/controls/LayerControl.tsx index ce255d74..9e2de35d 100644 --- a/ui/src/views/map/controls/LayerControl.tsx +++ b/ui/src/views/map/controls/LayerControl.tsx @@ -1,42 +1,58 @@ -import { faLayerGroup } from '@fortawesome/free-solid-svg-icons'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import 'maplibre-gl/dist/maplibre-gl.css'; +import { faLayerGroup } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import "maplibre-gl/dist/maplibre-gl.css"; import React, { useCallback, useContext, useState } from "react"; import "./LayerControl.scss"; -import { Layer } from 'types/layer'; -import classNames from 'classnames'; -import { LayerContext } from '../LayerContext'; +import { Layer } from "types/layer"; +import classNames from "classnames"; +import { LayerContext } from "../LayerContext"; function LayerPanel() { - const [active, setActive] = useState(false); - const { state, dispatch } = useContext(LayerContext); + const [active, setActive] = useState(false); + const { state, dispatch } = useContext(LayerContext); - const btnClass = classNames({ - 'maplibregl-ctrl-icon': true, - 'active': active, - 'is-hidden': active, - }); + const btnClass = classNames({ + "maplibregl-ctrl-icon": true, + active: active, + "is-hidden": active, + }); - const switcherClass = classNames({ - 'maplibregl-layer-list': true, - 'maplibregl-ctrl-icon': true, - 'is-hidden': !active, - 'mr-50': true, - }) + const switcherClass = classNames({ + "maplibregl-layer-list": true, + "maplibregl-ctrl-icon": true, + "is-hidden": !active, + "mr-50": true, + }); - const onClick = useCallback((l: Layer) => { - setActive(false); - dispatch({ type: "SET_ACTIVE_LAYER", payload: { layerId: l.id } }) - }, [dispatch]); + const onClick = useCallback( + (l: Layer) => { + setActive(false); + dispatch({ type: "SET_ACTIVE_LAYER", payload: { layerId: l.id } }); + }, + [dispatch], + ); - return ( -
- - < div className={switcherClass} > - {state.layers.map((l) => { return })} -
- - ); + return ( +
+ +
+ {state.layers.map((l) => { + return ( + + ); + })} +
+
+ ); } -export default React.memo(LayerPanel); \ No newline at end of file +export default React.memo(LayerPanel); diff --git a/ui/src/views/map/controls/StyleController.scss b/ui/src/views/map/controls/StyleController.scss index d27cd2a8..5b5ba2ca 100644 --- a/ui/src/views/map/controls/StyleController.scss +++ b/ui/src/views/map/controls/StyleController.scss @@ -1,37 +1,37 @@ .maplibregl-style-list { - background: none; - border: none; - cursor: pointer; - display: block; - font-size: 11px; - padding: 5px; - text-align: right; - // width: 100%; - height: auto; - block-size: fit-content; - width: fit-content; - margin-right: 50px; + background: none; + border: none; + cursor: pointer; + display: block; + font-size: 11px; + padding: 5px; + text-align: right; + // width: 100%; + height: auto; + block-size: fit-content; + width: fit-content; + margin-right: 50px; - button.active { - font-weight: bold; - } + button.active { + font-weight: bold; + } - button:hover { - font-weight: bold; - color: black; - } + button:hover { + font-weight: bold; + color: black; + } - button:focus { - font-weight: bold; - color: black; - } + button:focus { + font-weight: bold; + color: black; + } - button { - // border-top: 1px solid #ddd; - // padding: 5px; - text-align: right; - border: none; - block-size: fit-content; - width: 100%; - } -} \ No newline at end of file + button { + // border-top: 1px solid #ddd; + // padding: 5px; + text-align: right; + border: none; + block-size: fit-content; + width: 100%; + } +} diff --git a/ui/src/views/map/graphql.ts b/ui/src/views/map/graphql.ts index c7420d1d..6394a680 100644 --- a/ui/src/views/map/graphql.ts +++ b/ui/src/views/map/graphql.ts @@ -1,75 +1,64 @@ import { gql } from "@apollo/client"; const GET_LAYERS = gql` - query GetLayers($incidentId: uuid!) { - layers(where: {incidentId: {_eq: $incidentId}}) { - id - name - features { - id - geometry - properties - createdAt - updatedAt - deletedAt - } - } + query GetLayers($incidentId: uuid!) { + layers(where: { incidentId: { _eq: $incidentId } }) { + id + name + features { + id + geometry + properties + createdAt + updatedAt + deletedAt + } } + } `; const ADD_FEATURE = gql` - mutation AddFeature($layerId: uuid!, $id: uuid!, $geometry: jsonb, $properties: jsonb) { - insertFeaturesOne(object: {layerId: $layerId, id: $id, geometry: $geometry, properties: $properties}) { - id - geometry - properties - createdAt - updatedAt - deletedAt - } + mutation AddFeature($layerId: uuid!, $id: uuid!, $geometry: jsonb, $properties: jsonb) { + insertFeaturesOne(object: { layerId: $layerId, id: $id, geometry: $geometry, properties: $properties }) { + id + geometry + properties + createdAt + updatedAt + deletedAt } + } `; const MODIFY_FEATURE = gql` - mutation UpdateFeature($id: uuid!, $geometry: jsonb, $properties: jsonb) { - updateFeaturesByPk( - pkColumns: {id: $id} - _set: { - geometry: $geometry - properties: $properties - } - ) { - id - geometry - properties - createdAt - updatedAt - deletedAt - } + mutation UpdateFeature($id: uuid!, $geometry: jsonb, $properties: jsonb) { + updateFeaturesByPk(pkColumns: { id: $id }, _set: { geometry: $geometry, properties: $properties }) { + id + geometry + properties + createdAt + updatedAt + deletedAt } + } `; const DELETE_FEATURE = gql` - mutation UpdateFeature($id: uuid!, $deletedAt: timestamptz) { - updateFeaturesByPk( - pkColumns: {id: $id} - _set: { - deletedAt: $deletedAt - } - ) { - id - geometry - properties - createdAt - updatedAt - deletedAt - } + mutation UpdateFeature($id: uuid!, $deletedAt: timestamptz) { + updateFeaturesByPk(pkColumns: { id: $id }, _set: { deletedAt: $deletedAt }) { + id + geometry + properties + createdAt + updatedAt + deletedAt } + } `; export { - GET_LAYERS as GetLayers, - ADD_FEATURE as AddFeatureToLayer, - MODIFY_FEATURE as ModifyFeature, - DELETE_FEATURE as DeleteFeature, -} + GET_LAYERS as GetLayers, + ADD_FEATURE as AddFeatureToLayer, + MODIFY_FEATURE as ModifyFeature, + DELETE_FEATURE as DeleteFeature, +}; diff --git a/ui/src/views/map/index.tsx b/ui/src/views/map/index.tsx index dbc1201e..8882997d 100644 --- a/ui/src/views/map/index.tsx +++ b/ui/src/views/map/index.tsx @@ -1,7 +1,4 @@ -import { Map } from './Map'; - +import { Map } from "./Map"; export default Map; -export { - Map -}; +export { Map }; diff --git a/ui/src/views/measures/immediateMeasures/List.tsx b/ui/src/views/measures/immediateMeasures/List.tsx index 3ebc4d2c..8dc2ef4d 100644 --- a/ui/src/views/measures/immediateMeasures/List.tsx +++ b/ui/src/views/measures/immediateMeasures/List.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; function List() { const { t } = useTranslation(); - return

{t('immediateMeasures')}

; + return

{t("immediateMeasures")}

; } export default List; diff --git a/ui/src/views/measures/immediateMeasures/New.tsx b/ui/src/views/measures/immediateMeasures/New.tsx index 2ee10e5f..1472c262 100644 --- a/ui/src/views/measures/immediateMeasures/New.tsx +++ b/ui/src/views/measures/immediateMeasures/New.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; function New() { const { t } = useTranslation(); - return

{t('createNewImmediateMeasures')}

; + return

{t("createNewImmediateMeasures")}

; } function NewForm() { diff --git a/ui/src/views/measures/requests/List.tsx b/ui/src/views/measures/requests/List.tsx index f0be6308..9805f7fd 100644 --- a/ui/src/views/measures/requests/List.tsx +++ b/ui/src/views/measures/requests/List.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; function List() { const { t } = useTranslation(); - return

{t('requests')}

; + return

{t("requests")}

; } export default List; diff --git a/ui/src/views/measures/requests/New.tsx b/ui/src/views/measures/requests/New.tsx index d06c696b..c32574d6 100644 --- a/ui/src/views/measures/requests/New.tsx +++ b/ui/src/views/measures/requests/New.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; function New() { const { t } = useTranslation(); - return

{t('createNewRequest')}

; + return

{t("createNewRequest")}

; } function NewForm() { diff --git a/ui/src/views/measures/requests/index.tsx b/ui/src/views/measures/requests/index.tsx index d2111f39..6c5db445 100644 --- a/ui/src/views/measures/requests/index.tsx +++ b/ui/src/views/measures/requests/index.tsx @@ -1,3 +1,2 @@ export { default as List } from "./List"; export { New, NewForm } from "./New"; - diff --git a/ui/src/views/measures/tasks/List.tsx b/ui/src/views/measures/tasks/List.tsx index 688ed51a..cb51cf73 100644 --- a/ui/src/views/measures/tasks/List.tsx +++ b/ui/src/views/measures/tasks/List.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; function List() { const { t } = useTranslation(); - return

{t('tasks')}

; + return

{t("tasks")}

; } export default List; diff --git a/ui/src/views/measures/tasks/New.tsx b/ui/src/views/measures/tasks/New.tsx index 34a46d3a..20dc439e 100644 --- a/ui/src/views/measures/tasks/New.tsx +++ b/ui/src/views/measures/tasks/New.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; function New() { const { t } = useTranslation(); - return

{t('createNewTask')}

; + return

{t("createNewTask")}

; } function NewForm() { @@ -13,6 +13,3 @@ function NewForm() { export default New; export { New, NewForm }; - - - diff --git a/ui/src/views/resource/List.tsx b/ui/src/views/resource/List.tsx index 12c5a016..0a62f843 100644 --- a/ui/src/views/resource/List.tsx +++ b/ui/src/views/resource/List.tsx @@ -5,7 +5,7 @@ function List() { return ( <> -

{t('resources')}

+

{t("resources")}

); }
{t('message.time')}{t('message.sender')}{t('message.receiver')}{t('message.content')}{t("message.time")}{t("message.sender")}{t("message.receiver")}{t("message.content")}
{message.sender} {message.receiver} -
+
{message.content}