diff --git a/app/charts/map/base.json b/app/charts/map/base.json deleted file mode 100644 index 8b75752c6..000000000 --- a/app/charts/map/base.json +++ /dev/null @@ -1,9653 +0,0 @@ -{ - "version": 8, - "name": "lbm_v1.0.0_world", - "metadata": { "maputnik:renderer": "mbgljs", "openmaptiles:version": "3.x" }, - "center": [9.406129203943351, 47.33066813003171], - "zoom": 15.664734163788303, - "bearing": 0, - "pitch": 0, - "sources": { - "contours_swisstopo_borders": { - "type": "vector", - "url": "/mbtiles/org.openmaptiles-contours.vt/tiles.json" - }, - "lbm_relief_jpg": { - "type": "raster", - "url": "/mbtiles/org.openmaptiles-relief.vt/tiles.json" - }, - "openmaptiles": { - "type": "vector", - "url": "/mbtiles/org.openstreetmap-openmaptiles.vt/tiles.json" - }, - "swissmaptiles": { - "type": "vector", - "url": "https://vectortiles.geo.admin.ch/tiles/ch.swisstopo.leichte-basiskarte.vt/v1.0.0/tiles.json" - } - }, - "sprite": "https://vectortiles.geo.admin.ch/styles/ch.swisstopo.leichte-basiskarte_world.vt/v1.0.1/sprite/sprite", - "glyphs": "https://vectortiles.geo.admin.ch/fonts/{fontstack}/{range}.pbf", - "transition": {}, - "layers": [ - { - "id": "background", - "type": "background", - "layout": { "visibility": "visible" }, - "paint": { "background-color": "rgba(255, 255, 255, 1)" } - }, - { - "id": "lbm_relief", - "type": "raster", - "source": "lbm_relief_jpg", - "paint": { - "raster-opacity": { - "stops": [ - [15, 1], - [16.4, 0.6], - [16.5, 1] - ] - } - } - }, - { - "id": "omt_contour_line", - "type": "line", - "metadata": { "maputnik:comment": "color: rgb(191,138,64)" }, - "source": "contours_swisstopo_borders", - "source-layer": "contour", - "minzoom": 13, - "filter": ["all"], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": 0.4, - "line-color": "rgb(191,138,64)", - "line-opacity": [ - "interpolate", - ["linear"], - ["zoom"], - 13, - 0.45, - 14, - 0.55 - ], - "line-width": [ - "interpolate", - ["exponential", 1], - ["zoom"], - 12, - [ - "case", - ["==", ["%", ["to-number", ["get", "height"]], 100], 0], - 0.75, - 0 - ], - 13, - [ - "case", - ["==", ["%", ["to-number", ["get", "height"]], 100], 0], - 0.75, - 0 - ], - 14, - [ - "case", - ["==", ["%", ["to-number", ["get", "height"]], 100], 0], - 1, - 0 - ], - 14.5, - [ - "case", - ["==", ["%", ["to-number", ["get", "height"]], 100], 0], - 1.5, - [ - "case", - ["==", ["%", ["to-number", ["get", "height"]], 20], 0], - 0.75, - 0 - ] - ], - 15, - [ - "case", - ["==", ["%", ["to-number", ["get", "height"]], 100], 0], - 1.75, - [ - "case", - ["==", ["%", ["to-number", ["get", "height"]], 20], 0], - 1, - 0 - ] - ], - 16.5, - [ - "case", - ["==", ["%", ["to-number", ["get", "height"]], 100], 0], - 2, - [ - "case", - ["==", ["%", ["to-number", ["get", "height"]], 10], 0], - 1, - 0 - ] - ] - ] - } - }, - { - "id": "contour_line", - "type": "line", - "metadata": { "maputnik:comment": "color: rgb(191,138,64)" }, - "source": "swissmaptiles", - "source-layer": "contour_line", - "minzoom": 13, - "filter": ["all", ["!in", "class", "rock", "ice", "water"]], - "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-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] - ], - "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] - ] - ] - } - }, - { - "id": "omt_landcover", - "type": "fill", - "source": "openmaptiles", - "source-layer": "landcover", - "minzoom": 5, - "filter": [ - "any", - [ - "in", - "subclass", - "wood", - "scrub", - "recreation_ground", - "park", - "golf_course", - "allotments", - "plant_nursery", - "forest", - "glacier" - ], - ["==", "class", "sand"] - ], - "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.3, 0.3], - 14, - ["match", ["get", "class"], ["ice", "glacier"], 0.2, 0.3] - ] - } - }, - { - "id": "landcover", - "type": "fill", - "source": "swissmaptiles", - "source-layer": "landcover", - "minzoom": 5, - "filter": [ - "any", - [ - "in", - "subclass", - "wood", - "scrub", - "recreation_ground", - "park", - "golf_course", - "allotments", - "plant_nursery", - "forest", - "glacier" - ], - ["==", "class", "sand"] - ], - "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] - ] - } - }, - { - "id": "omt_landcover_casing", - "type": "line", - "source": "openmaptiles", - "source-layer": "landcover", - "minzoom": 10, - "filter": [ - "all", - [ - "in", - "subclass", - "wood", - "scrub", - "recreation_ground", - "park", - "golf_course", - "allotments", - "plant_nursery", - "forest" - ] - ], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": 0.5, - "line-color": "rgb(186, 199, 172)", - "line-opacity": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 12, - 0, - 14, - 1 - ], - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 6, - 0, - 11, - 0.25, - 16, - 0.75 - ] - } - }, - { - "id": "landcover_casing", - "type": "line", - "source": "swissmaptiles", - "source-layer": "landcover", - "minzoom": 10, - "filter": [ - "all", - [ - "in", - "subclass", - "wood", - "scrub", - "recreation_ground", - "park", - "golf_course", - "allotments", - "plant_nursery", - "forest" - ] - ], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": 0.5, - "line-color": "rgb(186, 199, 172)", - "line-opacity": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 12, - 0, - 14, - 1 - ], - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 6, - 0, - 11, - 0.25, - 16, - 0.75 - ] - } - }, - { - "id": "omt_landuse", - "type": "fill", - "source": "openmaptiles", - "source-layer": "landuse", - "filter": [ - "all", - [ - "in", - "class", - "landfill", - "cemetery", - "quarry", - "zoo", - "parking", - "pitch" - ] - ], - "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", "parking"], - 1, - 0.3 - ] - } - }, - { - "id": "landuse", - "type": "fill", - "source": "swissmaptiles", - "source-layer": "landuse", - "filter": [ - "all", - ["in", "class", "landfill", "cemetery", "quarry", "zoo", "pitch"] - ], - "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] - } - }, - { - "id": "omt_landuse_outline", - "type": "line", - "source": "openmaptiles", - "source-layer": "landuse", - "filter": ["all", ["in", "class", "cemetery", "zoo", "pitch"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-color": [ - "match", - ["get", "class"], - ["pitch"], - "rgb(130, 130, 130)", - "rgba(186, 199, 172, 1)" - ], - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 11, - 0.25, - 16, - 0.75 - ] - } - }, - { - "id": "landuse_outline", - "type": "line", - "source": "swissmaptiles", - "source-layer": "landuse", - "filter": ["all", ["in", "class", "cemetery", "zoo", "pitch"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-color": [ - "match", - ["get", "class"], - ["pitch"], - "rgb(130, 130, 130)", - "rgba(186, 199, 172, 1)" - ], - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 11, - 0.25, - 16, - 0.75 - ] - } - }, - { - "id": "water_line_intermittent", - "type": "line", - "source": "swissmaptiles", - "source-layer": "waterway", - "minzoom": 12, - "filter": ["all", ["==", "intermittent", 1]], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": 0, - "line-color": "rgba(48, 48, 48, 1)", - "line-dasharray": { - "stops": [ - [13, [0.5, 3]], - [14, [0.75, 4.5]], - [15, [1, 6]], - [16, [1.25, 7.5]] - ] - }, - "line-offset": 0, - "line-opacity": { - "stops": [ - [13, 0.25], - [16, 0.35] - ] - }, - "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] - ] - ] - } - }, - { - "id": "omt_water_line", - "type": "line", - "source": "openmaptiles", - "source-layer": "waterway", - "minzoom": 7, - "filter": ["all", ["!=", "intermittent", 1]], - "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-offset": 0, - "line-opacity": 0.7, - "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] - ] - ] - } - }, - { - "id": "water_line", - "type": "line", - "source": "swissmaptiles", - "source-layer": "waterway", - "minzoom": 7, - "filter": ["all", ["!=", "intermittent", 1]], - "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-offset": 0, - "line-opacity": 0.7, - "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] - ] - ] - } - }, - { - "id": "omt_water_polygon", - "type": "fill", - "source": "openmaptiles", - "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": "water_polygon", - "type": "fill", - "source": "swissmaptiles", - "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": "contour_line_water", - "type": "line", - "metadata": { "maputnik:comment": "color: rgb(191,138,64)" }, - "source": "swissmaptiles", - "source-layer": "contour_line", - "minzoom": 13, - "filter": ["all", ["in", "class", "ice", "water"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": 0.4, - "line-color": "rgb(0,136,208)", - "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] - ], - "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] - ] - ] - } - }, - { - "id": "omt_label_contour_line_20", - "type": "symbol", - "source": "contours_swisstopo_borders", - "source-layer": "contour", - "minzoom": 16, - "filter": [ - "all", - ["==", ["%", ["to-number", ["get", "height"]], 20], 0], - ["match", ["get", "class"], ["rock"], false, true] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": 550, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{height} ", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0.1, - "text-max-angle": 40, - "text-padding": [ - "interpolate", - ["linear"], - ["zoom"], - 14, - 0, - 15, - 12, - 16, - 50 - ], - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": 12, - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": [ - "match", - ["get", "class"], - "land", - "rgb(185,132,58)", - ["ice", "water"], - "rgb(0,136,208)", - ["scree"], - "rgb(64,64,64)", - "rgb(185,132,58)" - ], - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, .8)", - "text-halo-width": 2, - "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] - ] - } - }, - { - "id": "label_contour_line_20_grey", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "contour_line", - "minzoom": 16, - "filter": [ - "all", - ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], - ["!=", ["%", ["to-number", ["get", "ele"]], 100], 0], - ["match", ["get", "class"], ["scree"], true, false] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": 550, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{ele} ", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0.1, - "text-max-angle": 40, - "text-padding": [ - "interpolate", - ["linear"], - ["zoom"], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": 12, - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(64,64,64, 1)", - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, .8)", - "text-halo-width": 2, - "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] - ] - } - }, - { - "id": "label_contour_line_20_blue", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "contour_line", - "minzoom": 16, - "filter": [ - "all", - ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], - ["!=", ["%", ["to-number", ["get", "ele"]], 100], 0], - ["match", ["get", "class"], ["ice", "water"], true, false] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": 550, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{ele} ", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0.1, - "text-max-angle": 40, - "text-padding": [ - "interpolate", - ["linear"], - ["zoom"], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": 12, - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(0,136,208, 1)", - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, .8)", - "text-halo-width": 2, - "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] - ] - } - }, - { - "id": "label_contour_line_20_brown", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "contour_line", - "minzoom": 16, - "filter": [ - "all", - ["==", ["%", ["to-number", ["get", "ele"]], 20], 0], - ["!=", ["%", ["to-number", ["get", "ele"]], 100], 0], - ["match", ["get", "class"], ["land"], true, false] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": 550, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{ele} ", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0.1, - "text-max-angle": 40, - "text-padding": [ - "interpolate", - ["linear"], - ["zoom"], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": 12, - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(185,132,58, 1)", - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, .8)", - "text-halo-width": 2, - "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] - ] - } - }, - { - "id": "omt_label_contour_line_100", - "type": "symbol", - "source": "contours_swisstopo_borders", - "source-layer": "contour", - "minzoom": 14, - "filter": [ - "all", - ["==", ["%", ["to-number", ["get", "height"]], 100], 0], - ["match", ["get", "class"], ["rock"], false, true] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": { - "stops": [ - [14, 250], - [16, 550] - ] - }, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{height} ", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0.1, - "text-max-angle": 35, - "text-padding": [ - "interpolate", - ["linear"], - ["zoom"], - 14, - 0, - 15, - 12, - 16, - 50 - ], - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 14, - 10.5, - 16, - 14 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": [ - "match", - ["get", "class"], - "land", - "rgb(185,132,58)", - ["ice", "water"], - "rgb(0,136,208)", - ["scree"], - "rgb(64,64,64)", - "rgb(185,132,58)" - ], - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, .8)", - "text-halo-width": 2, - "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] - ] - } - }, - { - "id": "label_contour_line_100_grey", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "contour_line", - "minzoom": 14, - "filter": [ - "all", - ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], - ["match", ["get", "class"], ["scree"], true, false] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": { - "stops": [ - [14, 250], - [16, 450] - ] - }, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{ele} ", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0.1, - "text-max-angle": 35, - "text-padding": [ - "interpolate", - ["linear"], - ["zoom"], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 14, - 10.5, - 16, - 14 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(64,64,64, 1)", - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, 0.8)", - "text-halo-width": 2, - "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] - ] - } - }, - { - "id": "label_contour_line_100_blue", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "contour_line", - "minzoom": 14, - "filter": [ - "all", - ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], - ["match", ["get", "class"], ["ice", "water"], true, false] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": { - "stops": [ - [14, 250], - [16, 450] - ] - }, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{ele} ", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0.1, - "text-max-angle": 35, - "text-padding": [ - "interpolate", - ["linear"], - ["zoom"], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 14, - 10.5, - 16, - 14 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(0,136,208, 1)", - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, 0.8)", - "text-halo-width": 2, - "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] - ] - } - }, - { - "id": "label_contour_line_100_brown", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "contour_line", - "minzoom": 14, - "filter": [ - "all", - ["==", ["%", ["to-number", ["get", "ele"]], 100], 0], - ["match", ["get", "class"], ["land"], true, false] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": { - "stops": [ - [14, 250], - [16, 450] - ] - }, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{ele} ", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0.1, - "text-max-angle": 35, - "text-padding": [ - "interpolate", - ["linear"], - ["zoom"], - 14, - 0, - 15, - 12, - 16, - 80 - ], - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 14, - 10.5, - 16, - 14 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(185,132,58, 1)", - "text-halo-blur": 0.5, - "text-halo-color": "rgba(238, 238, 238, 0.8)", - "text-halo-width": 2, - "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] - ] - } - }, - { - "id": "omt_water_outline", - "type": "line", - "source": "openmaptiles", - "source-layer": "water", - "filter": ["all", ["!=", "class", "ocean"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": 0.5, - "line-color": "rgba(133, 189, 224, 1)", - "line-opacity": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 0, - 0, - 8, - 1, - 14, - 0 - ], - "line-width": 0.5 - } - }, - { - "id": "water_outline", - "type": "line", - "source": "swissmaptiles", - "source-layer": "water", - "filter": ["all", ["!=", "class", "ocean"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": 0.5, - "line-color": "rgba(133, 189, 224, 1)", - "line-opacity": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 0, - 0, - 8, - 1, - 14, - 0 - ], - "line-width": 0.5 - } - }, - { - "id": "pattern_landcover_vineyard", - "type": "fill", - "source": "swissmaptiles", - "source-layer": "landcover", - "minzoom": 13, - "filter": ["all", ["==", "subclass", "vineyard"]], - "paint": { - "fill-opacity": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 13, - 0, - 13.1, - 0.6, - 17, - 1 - ], - "fill-pattern": "vinyard_green" - } - }, - { - "id": "pattern_landcover_wetlands", - "type": "fill", - "source": "swissmaptiles", - "source-layer": "landcover", - "minzoom": 13, - "filter": ["all", ["==", "class", "wetland"]], - "paint": { - "fill-antialias": true, - "fill-color": "#000000", - "fill-opacity": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 13, - 0, - 13.2, - 0.4, - 17, - 1 - ], - "fill-pattern": "wetland_blue" - } - }, - { - "id": "pattern_landcover_orchard", - "type": "fill", - "source": "swissmaptiles", - "source-layer": "landcover", - "minzoom": 13, - "filter": ["all", ["==", "subclass", "orchard"]], - "paint": { - "fill-opacity": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 13, - 0, - 13.2, - 0.8, - 17, - 1 - ], - "fill-pattern": "orchard_green" - } - }, - { - "id": "omt_park", - "type": "line", - "source": "openmaptiles", - "source-layer": "park", - "minzoom": 7, - "filter": ["all", ["in", "class", "national_park"]], - "paint": { - "line-color": "rgba(171, 197, 159, 1)", - "line-opacity": [ - "interpolate", - ["linear"], - ["zoom"], - 7, - 0, - 8, - 1, - 13, - 1, - 14, - 0.6 - ], - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 9, - 1.5, - 15, - 8, - 18, - 12 - ] - } - }, - { - "id": "park", - "type": "line", - "source": "swissmaptiles", - "source-layer": "park", - "minzoom": 7, - "filter": ["all", ["in", "class", "national_park"]], - "paint": { - "line-color": "rgba(171, 197, 159, 1)", - "line-opacity": [ - "interpolate", - ["linear"], - ["zoom"], - 7, - 0, - 8, - 1, - 13, - 1, - 14, - 0.6 - ], - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 9, - 1.5, - 15, - 8, - 18, - 12 - ] - } - }, - { - "id": "omt_boundary_disputed", - "type": "line", - "source": "openmaptiles", - "source-layer": "boundary", - "minzoom": 0, - "filter": [ - "all", - ["in", "admin_level", 2, 4], - ["!=", "maritime", 1], - ["==", "disputed", 1], - ["==", "$type", "LineString"] - ], - "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-dasharray": [1.5, 2.5], - "line-opacity": { - "stops": [ - [13, 1], - [14, 0.7] - ] - }, - "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] - ] - } - }, - { - "id": "boundary_disputed", - "type": "line", - "source": "swissmaptiles", - "source-layer": "boundary", - "minzoom": 0, - "filter": [ - "all", - ["in", "admin_level", 2, 4], - ["!=", "maritime", 1], - ["==", "disputed", 1], - ["==", "$type", "LineString"] - ], - "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-dasharray": [1.5, 2.5], - "line-opacity": { - "stops": [ - [13, 1], - [14, 0.7] - ] - }, - "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] - ] - } - }, - { - "id": "omt_boundary", - "type": "line", - "source": "openmaptiles", - "source-layer": "boundary", - "minzoom": 0, - "filter": [ - "all", - ["in", "admin_level", 2, 4], - ["!=", "maritime", 1], - ["!=", "disputed", 1], - ["!in", "adm0_l", "CHE", "LIE"], - ["!in", "adm0_r", "CHE", "LIE"], - ["==", "$type", "LineString"] - ], - "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-opacity": { - "stops": [ - [13, 1], - [14, 0.8] - ] - }, - "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] - ] - } - }, - { - "id": "boundary", - "type": "line", - "source": "swissmaptiles", - "source-layer": "boundary", - "minzoom": 0, - "filter": [ - "all", - ["in", "admin_level", 2, 4], - ["!=", "maritime", 1], - ["!=", "disputed", 1], - ["==", "$type", "LineString"] - ], - "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-opacity": { - "stops": [ - [13, 1], - [14, 0.8] - ] - }, - "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] - ] - } - }, - { - "id": "omt_tunnel_public_transport", - "type": "line", - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 8, - "filter": [ - "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "rail", "transit", "cable_car", "gondola"], - ["==", "$type", "LineString"] - ], - "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"], - ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["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-dasharray": { - "stops": [ - [13, [4, 2.5]], - [14, [6, 3.75]], - [15, [10, 6.25]], - [16, [14, 8.75]] - ] - }, - "line-opacity": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - 0, - 9, - ["match", ["get", "class"], ["rail"], 0.8, 0], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge", "funicular"], - ["match", ["get", "service"], ["yard", "siding"], 0, 0.8], - 0 - ], - 0 - ], - 14.5, - 0.8 - ], - "line-width": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.2, 0.75], - 0.2 - ], - 0.2 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.1, 1.25], - 1 - ], - ["cable_car"], - 1, - 0.75 - ], - 18, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 1, 2], - 2 - ], - ["cable_car"], - 2, - 1.5 - ] - ] - } - }, - { - "id": "tunnel_public_transport", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 8, - "filter": [ - "all", - ["==", "brunnel", "tunnel"], - ["in", "class", "rail", "transit", "cable_car", "gondola"], - ["==", "$type", "LineString"] - ], - "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"], - ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["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-dasharray": { - "stops": [ - [13, [4, 2.5]], - [14, [6, 3.75]], - [15, [10, 6.25]], - [16, [14, 8.75]] - ] - }, - "line-opacity": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - 0, - 9, - ["match", ["get", "class"], ["rail"], 0.8, 0], - 13, - [ - "match", - ["get", "subclass"], - ["rail", "subway", "funicular", "narrow_gauge"], - 0.8, - 0 - ], - 14, - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge", "funicular", "subway"], - ["match", ["get", "service"], ["yard", "siding"], 0, 0.8], - 0 - ], - 14.5, - 0.8 - ], - "line-width": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.2, 0.75], - 0.2 - ], - 0.2 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.1, 1.25], - 1 - ], - ["cable_car"], - 1, - 0.75 - ], - 18, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 1, 2], - 2 - ], - ["cable_car"], - 2, - 1.5 - ] - ] - } - }, - { - "id": "omt_tunnel_road", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 7, - "filter": [ - "all", - ["==", "brunnel", "tunnel"], - [ - "!in", - "class", - "rail", - "ferry", - "transit", - "cable_car", - "gondola", - "path" - ], - ["==", "$type", "LineString"] - ], - "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(170, 170, 170, 1)", - "line-dasharray": { - "stops": [ - [13, [3, 1.875]], - [14, [4, 2.5]], - [15, [5, 3.125]], - [16, [6, 3.75]] - ] - }, - "line-offset": 0, - "line-opacity": 1, - "line-width": [ - "interpolate", - ["linear"], - ["zoom"], - 7, - ["literal", 0], - 8, - ["match", ["get", "class"], ["motorway", "trunk", "primary"], 1, 0], - 9, - ["match", ["get", "class"], ["motorway", "trunk", "primary"], 1.1, 0], - 10, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "secondary"], - 1.2, - 0 - ], - 11, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "secondary"], - 1.3, - 0 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "secondary", "tertiary"], - 1.4, - 0 - ], - 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] - ] - } - }, - { - "id": "tunnel_road", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 7, - "filter": [ - "all", - ["==", "brunnel", "tunnel"], - [ - "!in", - "class", - "rail", - "ferry", - "transit", - "cable_car", - "gondola", - "path" - ], - ["==", "$type", "LineString"] - ], - "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(170, 170, 170, 1)", - "line-dasharray": { - "stops": [ - [13, [3, 1.875]], - [14, [4, 2.5]], - [15, [5, 3.125]], - [16, [6, 3.75]] - ] - }, - "line-offset": 0, - "line-opacity": 1, - "line-width": [ - "interpolate", - ["linear"], - ["zoom"], - 7, - ["literal", 0], - 8, - ["match", ["get", "class"], ["motorway", "trunk", "primary"], 1, 0], - 9, - ["match", ["get", "class"], ["motorway", "trunk", "primary"], 1.1, 0], - 10, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "secondary"], - 1.2, - 0 - ], - 11, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "secondary"], - 1.3, - 0 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "secondary", "tertiary"], - 1.4, - 0 - ], - 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] - ] - } - }, - { - "id": "omt_tunnel_road_path", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 6, - "filter": [ - "all", - ["==", "brunnel", "tunnel"], - ["==", "class", "path"], - ["==", "$type", "LineString"] - ], - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(140, 140, 140, 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]] - ] - }, - "line-offset": 0, - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 15, - 1.1, - 20, - 3 - ] - } - }, - { - "id": "tunnel_road_path", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 6, - "filter": [ - "all", - ["==", "brunnel", "tunnel"], - ["==", "class", "path"], - ["==", "$type", "LineString"] - ], - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(140, 140, 140, 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]] - ] - }, - "line-offset": 0, - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 15, - 1.1, - 20, - 3 - ] - } - }, - { - "id": "construct_line", - "type": "line", - "source": "swissmaptiles", - "source-layer": "construct", - "minzoom": 14, - "filter": ["all", ["==", "class", "lock"]], - "paint": { - "line-blur": 0.4, - "line-color": "hsl(220, 10%, 67%)", - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": { - "stops": [ - [15, 1], - [18, 4] - ] - } - } - }, - { - "id": "construct", - "type": "fill", - "source": "swissmaptiles", - "source-layer": "construct", - "minzoom": 13, - "filter": ["all", ["!=", "class", "lock"]], - "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 - ] - } - }, - { - "id": "omt_aeroway_polygon_casing", - "type": "line", - "source": "openmaptiles", - "source-layer": "aeroway", - "minzoom": 11, - "filter": [ - "all", - ["in", "class", "runway", "taxiway", "apron", "runway_grass"], - ["==", "$type", "Polygon"] - ], - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgb(190, 190, 190)", - "line-opacity": 1, - "line-width": { - "base": 1.5, - "stops": [ - [13, 3], - [15, 4], - [17, 5] - ] - } - } - }, - { - "id": "aeroway_polygon_casing", - "type": "line", - "source": "swissmaptiles", - "source-layer": "aeroway", - "minzoom": 11, - "filter": [ - "all", - ["in", "class", "runway", "taxiway", "apron", "runway_grass"], - ["==", "$type", "Polygon"] - ], - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgb(190, 190, 190)", - "line-opacity": 1, - "line-width": { - "base": 1.5, - "stops": [ - [13, 3], - [15, 4], - [17, 5] - ] - } - } - }, - { - "id": "omt_aeroway_line_casing", - "type": "line", - "source": "openmaptiles", - "source-layer": "aeroway", - "minzoom": 11, - "filter": ["all", ["==", "$type", "LineString"]], - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(110, 110, 110, 1)", - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 11.5, - 0, - 12, - 2.3, - 15, - 11.25, - 20, - 153 - ] - } - }, - { - "id": "aeroway_line_casing", - "type": "line", - "source": "swissmaptiles", - "source-layer": "aeroway", - "minzoom": 11, - "filter": ["all", ["==", "$type", "LineString"]], - "layout": { - "line-cap": "butt", - "line-join": "miter", - "visibility": "visible" - }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(110, 110, 110, 1)", - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 11.5, - 0, - 12, - 2.3, - 15, - 11.25, - 20, - 153 - ] - } - }, - { - "id": "omt_road_path", - "type": "line", - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 14, - "filter": [ - "all", - ["in", "class", "path"], - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "$type", "LineString"] - ], - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [15, 0.1], - [20, 0.4] - ] - }, - "line-color": "rgba(115, 115, 115, 1)", - "line-dasharray": { - "stops": [ - [14, [3, 1]], - [15, [6, 2]], - [16, [9, 3]], - [17, [12, 4]], - [18, [15, 5]] - ] - }, - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 15, - 1.1, - 20, - 3 - ] - } - }, - { - "id": "road_via_ferrata", - "type": "line", - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 14, - "filter": [ - "all", - ["in", "class", "via_ferrata"], - ["!in", "brunnel", "bridge", "tunnel"], - ["==", "$type", "LineString"] - ], - "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-dasharray": { - "stops": [ - [15, [0.75, 2]], - [16, [1.125, 3]], - [17, [1.5, 4]], - [18, [1.875, 5]] - ] - }, - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 15, - 1.1, - 20, - 3 - ] - } - }, - { - "id": "road_path", - "type": "line", - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 14, - "filter": [ - "all", - ["match", ["get", "class"], ["path"], true, false], - [ - "match", - ["get", "brunnel"], - ["bridge", "tunnel"], - ["match", ["get", "subclass"], "covered_bridge", true, false], - true - ], - ["==", ["geometry-type"], "LineString"] - ], - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [15, 0.1], - [20, 0.4] - ] - }, - "line-color": "rgba(115, 115, 115, 1)", - "line-dasharray": { - "stops": [ - [14, [3, 1]], - [15, [6, 2]], - [16, [9, 3]], - [17, [12, 4]], - [18, [15, 5]] - ] - }, - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 15, - 1.1, - 20, - 3 - ] - } - }, - { - "id": "omt_road_casing", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 7, - "filter": [ - "all", - [ - "match", - ["get", "class"], - [ - "cable_car", - "car_ferry", - "chair_lift", - "ferry", - "gondola", - "path", - "rail", - "transit", - "via_ferrata" - ], - false, - true - ], - [ - "match", - ["get", "brunnel"], - ["bridge", "tunnel"], - ["match", ["get", "subclass"], "covered_bridge", true, false], - true - ], - ["==", ["geometry-type"], "LineString"] - ], - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [7, 3], - [8, 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-offset": 0, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 7, - ["literal", 0], - 8, - ["match", ["get", "ramp"], 1, 1.5, 3], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 4], - ["trunk"], - 4, - 3 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5, 5], - ["primary"], - 5, - ["secondary"], - 4.5, - ["tertiary"], - 3.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 3.5, 5.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5.5, 5.5], - ["primary"], - 5.5, - ["secondary"], - 5, - ["tertiary"], - 4, - ["minor"], - 3, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 6.5, 8], - ["trunk"], - ["match", ["get", "oneway"], 1, 8, 9], - ["primary"], - 9, - ["secondary"], - 8, - ["tertiary"], - 7, - ["minor"], - 5, - ["track"], - 1.1, - 4 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 10, 12], - ["trunk"], - ["match", ["get", "oneway"], 1, 12, 15], - ["primary"], - 15, - ["secondary"], - 13, - ["tertiary"], - 11, - ["minor"], - 9, - ["track"], - 1.1, - 8 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 120, - ["secondary"], - 115, - ["tertiary"], - 110, - ["minor"], - 100, - ["track"], - 3, - 95 - ] - ] - } - }, - { - "id": "building_ln", - "type": "line", - "source": "swissmaptiles", - "source-layer": "building_ln", - "minzoom": 13, - "paint": { - "line-blur": 0.4, - "line-color": [ - "match", - ["get", "class"], - "weir", - "rgb(20, 136, 205)", - "rgb(130, 130, 130)" - ], - "line-opacity": ["match", ["get", "class"], "weir", 0.2, 1], - "line-width": { - "stops": [ - [13, 0], - [16, 2], - [18, 3] - ] - } - } - }, - { - "id": "road_casing", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 7, - "filter": [ - "all", - [ - "match", - ["get", "class"], - [ - "cable_car", - "car_ferry", - "chair_lift", - "ferry", - "gondola", - "path", - "rail", - "transit", - "via_ferrata" - ], - false, - true - ], - [ - "match", - ["get", "brunnel"], - ["bridge", "tunnel"], - ["match", ["get", "subclass"], "covered_bridge", true, false], - true - ], - ["==", ["geometry-type"], "LineString"] - ], - "layout": { - "line-cap": "round", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [7, 3], - [8, 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-offset": 0, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 7, - ["literal", 0], - 8, - ["match", ["get", "ramp"], 1, 1.5, 3], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 4], - ["trunk"], - 4, - 3 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5, 5], - ["primary"], - 5, - ["secondary"], - 4.5, - ["tertiary"], - 3.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 3.5, 5.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5.5, 5.5], - ["primary"], - 5.5, - ["secondary"], - 5, - ["tertiary"], - 4, - ["minor"], - 3, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 6.5, 8], - ["trunk"], - ["match", ["get", "oneway"], 1, 8, 9], - ["primary"], - 9, - ["secondary"], - 8, - ["tertiary"], - 7, - ["minor"], - 5, - ["track"], - 1.1, - 4 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 10, 12], - ["trunk"], - ["match", ["get", "oneway"], 1, 12, 15], - ["primary"], - 15, - ["secondary"], - 13, - ["tertiary"], - 11, - ["minor"], - 9, - ["track"], - 1.1, - 8 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 120, - ["secondary"], - 115, - ["tertiary"], - 110, - ["minor"], - 100, - ["track"], - 3, - 95 - ] - ] - } - }, - { - "id": "omt_landuse_parking", - "type": "fill", - "source": "openmaptiles", - "source-layer": "landuse", - "filter": ["all", ["in", "class", "parking"]], - "layout": { "visibility": "visible" }, - "paint": { - "fill-color": "rgba(255, 255, 255, 1)", - "fill-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - } - } - }, - { - "id": "omt_landuse_parking_outline", - "type": "line", - "source": "openmaptiles", - "source-layer": "landuse", - "filter": ["all", ["in", "class", "parking"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-color": "rgba(130, 130, 130, 1)", - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 11, - 0.25, - 16, - 0.75 - ] - } - }, - { - "id": "omt_road_fill", - "type": "line", - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 7, - "filter": [ - "all", - [ - "match", - ["get", "class"], - [ - "cable_car", - "car_ferry", - "chair_lift", - "ferry", - "gondola", - "path", - "rail", - "track", - "transit", - "via_ferrata" - ], - false, - true - ], - [ - "match", - ["get", "brunnel"], - ["bridge", "tunnel"], - ["match", ["get", "subclass"], "covered_bridge", true, false], - true - ], - ["==", ["geometry-type"], "LineString"] - ], - "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, - ["literal", 0], - 8, - ["match", ["get", "ramp"], 1, 0.5, 2], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 2.75], - ["trunk"], - 2.75, - 2 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 3.75], - ["trunk"], - ["match", ["get", "oneway"], 1, 3.75, 3.75], - ["primary"], - 3.75, - ["secondary"], - 3.25, - ["tertiary"], - 2.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.75, 4.25], - ["trunk"], - ["match", ["get", "oneway"], 1, 4.25, 4.25], - ["primary"], - 4.25, - ["secondary"], - 3.75, - ["tertiary"], - 2.75, - ["minor"], - 1.75, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 5, 6.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 6.5, 7.5], - ["primary"], - 7.5, - ["secondary"], - 6.5, - ["tertiary", "rail"], - 5.5, - ["minor"], - 3.5, - 2.5 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 8.5, 10.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 10.5, 13.5], - ["primary"], - 13.5, - ["secondary"], - 11.5, - ["tertiary", "rail"], - 9.5, - ["minor"], - 7.5, - 6.5 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 117, - ["secondary"], - 112, - ["tertiary"], - 107, - ["minor"], - 97, - 92 - ] - ] - } - }, - { - "id": "landuse_parking", - "type": "fill", - "source": "swissmaptiles", - "source-layer": "landuse", - "filter": ["all", ["in", "class", "parking"]], - "layout": { "visibility": "visible" }, - "paint": { - "fill-color": "rgba(255, 255, 255, 1)", - "fill-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - } - } - }, - { - "id": "landuse_parking_outline", - "type": "line", - "source": "swissmaptiles", - "source-layer": "landuse", - "filter": ["all", ["in", "class", "parking"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-color": "rgba(130, 130, 130, 1)", - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 11, - 0.25, - 16, - 0.75 - ] - } - }, - { - "id": "road_fill", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 7, - "filter": [ - "all", - [ - "match", - ["get", "class"], - [ - "cable_car", - "car_ferry", - "chair_lift", - "ferry", - "gondola", - "path", - "rail", - "track", - "transit", - "via_ferrata" - ], - false, - true - ], - [ - "match", - ["get", "brunnel"], - ["bridge", "tunnel"], - ["match", ["get", "subclass"], "covered_bridge", true, false], - true - ], - ["==", ["geometry-type"], "LineString"] - ], - "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, - ["literal", 0], - 8, - ["match", ["get", "ramp"], 1, 0.5, 2], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 2.75], - ["trunk"], - 2.75, - 2 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 3.75], - ["trunk"], - ["match", ["get", "oneway"], 1, 3.75, 3.75], - ["primary"], - 3.75, - ["secondary"], - 3.25, - ["tertiary"], - 2.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.75, 4.25], - ["trunk"], - ["match", ["get", "oneway"], 1, 4.25, 4.25], - ["primary"], - 4.25, - ["secondary"], - 3.75, - ["tertiary"], - 2.75, - ["minor"], - 1.75, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 5, 6.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 6.5, 7.5], - ["primary"], - 7.5, - ["secondary"], - 6.5, - ["tertiary", "rail"], - 5.5, - ["minor"], - 3.5, - 2.5 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 8.5, 10.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 10.5, 13.5], - ["primary"], - 13.5, - ["secondary"], - 11.5, - ["tertiary", "rail"], - 9.5, - ["minor"], - 7.5, - 6.5 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 117, - ["secondary"], - 112, - ["tertiary"], - 107, - ["minor"], - 97, - 92 - ] - ] - } - }, - { - "id": "omt_aeroway_line_fill", - "type": "line", - "source": "openmaptiles", - "source-layer": "aeroway", - "minzoom": 11, - "filter": ["all", ["==", "$type", "LineString"]], - "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-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 11, - 0, - 12, - 2, - 15, - 10, - 20, - 150 - ] - } - }, - { - "id": "omt_aeroway_polygon_fill", - "type": "fill", - "source": "openmaptiles", - "source-layer": "aeroway", - "minzoom": 11, - "filter": [ - "all", - ["in", "class", "runway", "taxiway", "apron", "runway_grass"], - ["==", "$type", "Polygon"] - ], - "layout": { "visibility": "visible" }, - "paint": { - "fill-antialias": true, - "fill-color": [ - "match", - ["get", "class"], - ["runway_grass"], - "rgb(224,234,221)", - "rgb(255, 255, 255)" - ], - "fill-opacity": 1 - } - }, - { - "id": "aeroway_line_fill", - "type": "line", - "source": "swissmaptiles", - "source-layer": "aeroway", - "minzoom": 11, - "filter": ["all", ["==", "$type", "LineString"]], - "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-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 11, - 0, - 12, - 2, - 15, - 10, - 20, - 150 - ] - } - }, - { - "id": "aeroway_polygon_fill", - "type": "fill", - "source": "swissmaptiles", - "source-layer": "aeroway", - "minzoom": 11, - "filter": [ - "all", - ["in", "class", "runway", "taxiway", "apron", "runway_grass"], - ["==", "$type", "Polygon"] - ], - "layout": { "visibility": "visible" }, - "paint": { - "fill-antialias": true, - "fill-color": [ - "match", - ["get", "class"], - ["runway_grass"], - "rgb(224,234,221)", - "rgb(255, 255, 255)" - ], - "fill-opacity": 1 - } - }, - { - "id": "car_ferry", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 9, - "filter": ["all", ["==", "class", "car_ferry"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(105, 187, 218, 1)", - "line-dasharray": { - "stops": [ - [12, [6, 2]], - [13, [9, 3]], - [14, [12, 4]], - [15, [15, 5]], - [16, [18, 6]] - ] - }, - "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-width": { - "stops": [ - [8, 0.4], - [14, 1], - [18, 2] - ] - } - } - }, - { - "id": "ferry", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 12, - "filter": ["all", ["==", "class", "ferry"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": 0.4, - "line-color": "rgba(105, 187, 218, 1)", - "line-dasharray": { - "stops": [ - [12, [3, 1]], - [13, [6, 2]], - [14, [9, 3]], - [15, [12, 4]], - [16, [15, 5]] - ] - }, - "line-opacity": { - "stops": [ - [12, 0], - [13, 1] - ] - }, - "line-width": { - "stops": [ - [8, 0.4], - [14, 1], - [18, 2] - ] - } - } - }, - { - "id": "omt_public_transport", - "type": "line", - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 8, - "filter": [ - "all", - ["in", "class", "rail", "transit"], - ["!in", "brunnel", "bridge", "tunnel"] - ], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["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-opacity": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - 0, - 9, - ["match", ["get", "class"], ["rail"], 1, 0], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge", "funicular"], - ["match", ["get", "service"], ["yard", "siding"], 0, 1], - 0 - ], - 0 - ], - 14.5, - 1 - ], - "line-width": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.2, 0.5], - 0.2 - ], - 0.2 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.1, 1], - 1 - ], - ["cable_car"], - 1, - 0.75 - ], - 18, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 1.5, 2], - 2 - ], - 1.5 - ] - ] - } - }, - { - "id": "public_transport", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 8, - "filter": [ - "all", - ["in", "class", "rail", "transit"], - ["!in", "brunnel", "bridge", "tunnel"] - ], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["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-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", "funicular"], - ["match", ["get", "service"], ["yard", "siding"], 0, 1], - 0 - ], - 0 - ], - 14.5, - 1 - ], - "line-width": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.2, 0.5], - 0.2 - ], - 0.2 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.2, 1], - 1 - ], - ["cable_car"], - 1, - 0.75 - ], - 18, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 1.5, 2], - 2 - ], - 1.5 - ] - ] - } - }, - { - "id": "sinkhole", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "spot_elevation", - "minzoom": 14, - "filter": [ - "all", - [ - "in", - "class", - "sinkhole", - "sinkhole_rock", - "sinkhole_scree", - "sinkhole_water", - "sinkhole_ice" - ] - ], - "layout": { - "icon-anchor": "bottom", - "icon-image": [ - "match", - ["get", "class"], - "sinkhole", - "arrow_brown", - ["sinkhole_rock", "sinkhole_scree"], - "arrow_grey", - ["sinkhole_ice", "sinkhole_water"], - "arrow_blue", - "" - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-padding": 30, - "icon-rotate": 15, - "icon-size": 1, - "symbol-placement": "point", - "text-allow-overlap": false, - "text-anchor": "center", - "text-field": "", - "text-font": [], - "text-ignore-placement": false, - "text-keep-upright": false, - "text-optional": false, - "text-size": 16, - "visibility": "visible" - }, - "paint": { - "icon-color": "#000000", - "icon-opacity": { - "stops": [ - [14, 0], - [15, 0.6] - ] - }, - "text-color": "#000000", - "text-halo-blur": 1, - "text-halo-width": 0, - "text-opacity": 1 - } - }, - { - "id": "omt_building_2d", - "type": "fill", - "source": "openmaptiles", - "source-layer": "building", - "minzoom": 13, - "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": "building_2d", - "type": "fill", - "source": "swissmaptiles", - "source-layer": "building", - "minzoom": 13, - "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": "omt_building_2d_casing", - "type": "line", - "source": "openmaptiles", - "source-layer": "building", - "minzoom": 15, - "layout": { "visibility": "visible" }, - "paint": { - "line-color": "hsl(220, 10%, 67%)", - "line-opacity": [ - "interpolate", - ["linear"], - ["zoom"], - 15, - 0, - 16, - 0.5, - 19, - 1 - ], - "line-width": ["interpolate", ["linear"], ["zoom"], 15, 0.2, 18, 1.2] - } - }, - { - "id": "building_2d_casing", - "type": "line", - "source": "swissmaptiles", - "source-layer": "building", - "minzoom": 15, - "layout": { "visibility": "visible" }, - "paint": { - "line-color": "hsl(220, 10%, 67%)", - "line-opacity": [ - "interpolate", - ["linear"], - ["zoom"], - 15, - 0, - 16, - 0.5, - 19, - 1 - ], - "line-width": ["interpolate", ["linear"], ["zoom"], 15, 0.2, 18, 1.2] - } - }, - { - "id": "lake_elevation", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "spot_elevation", - "minzoom": 12, - "filter": ["all", ["==", "class", "lake_elevation"]], - "layout": { - "icon-allow-overlap": true, - "icon-ignore-placement": true, - "icon-image": [ - "case", - ["has", "lake_depth"], - "arrow_line_blue", - ["==", ["length", ["to-string", ["get", "ele"]]], 3], - "line_blue_short", - "line_blue_long" - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-size": 1, - "symbol-placement": "point", - "text-allow-overlap": false, - "text-anchor": "center", - "text-field": [ - "case", - ["has", "lake_depth"], - ["concat", ["get", "ele"], "\n\n", ["get", "lake_depth"]], - ["get", "ele"] - ], - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-justify": "center", - "text-keep-upright": false, - "text-line-height": 1, - "text-offset": [ - "case", - ["has", "lake_depth"], - ["literal", [0.35, -0.5]], - ["literal", [0, -0.5]] - ], - "text-optional": false, - "text-pitch-alignment": "auto", - "text-radial-offset": 0, - "text-rotation-alignment": "auto", - "text-size": ["interpolate", ["linear"], ["zoom"], 14, 10.5, 18, 13], - "visibility": "visible" - }, - "paint": { - "icon-color": "#000000", - "icon-opacity": 1, - "text-color": "rgba(20, 136, 205, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": ["interpolate", ["linear"], ["zoom"], 12, 1, 18, 2], - "text-opacity": 1 - } - }, - { - "id": "bridge-l1_road_casing", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 10, - "filter": [ - "all", - ["==", "layer", 1], - [ - "!in", - "class", - "rail", - "ferry", - "path", - "transit", - "cable_car", - "gondola" - ], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": 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-offset": 0, - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 4], - ["trunk"], - 4, - 3 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5, 5], - ["primary"], - 5, - ["secondary"], - 4.5, - ["tertiary"], - 3.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 3.5, 5.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5.5, 5.5], - ["primary"], - 5.5, - ["secondary"], - 5, - ["tertiary"], - 4, - ["minor"], - 3, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 6.5, 8], - ["trunk"], - ["match", ["get", "oneway"], 1, 8, 9], - ["primary"], - 9, - ["secondary"], - 8, - ["tertiary"], - 7, - ["minor"], - 5, - ["track"], - 1.1, - 4 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 10, 12], - ["trunk"], - ["match", ["get", "oneway"], 1, 12, 15], - ["primary"], - 15, - ["secondary"], - 13, - ["tertiary"], - 11, - ["minor"], - 9, - ["track"], - 1.1, - 8 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 120, - ["secondary"], - 115, - ["tertiary"], - 110, - ["minor"], - 100, - ["track"], - 3, - 95 - ] - ] - } - }, - { - "id": "bridge-l1_fill", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 10, - "filter": [ - "all", - ["==", "layer", 1], - ["!in", "class", "ferry", "cable_car", "gondola"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "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"], - [ - "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"], - [ - "match", - ["get", "subclass"], - "funicular", - "rgba(243,243,246,0)", - "rgb(243,243,246)" - ], - "rgb(255,255,255)" - ] - ], - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 2.75], - ["trunk"], - 2.75, - 2 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 3.75], - ["trunk"], - ["match", ["get", "oneway"], 1, 3.75, 3.75], - ["primary"], - 3.75, - ["secondary"], - 3.25, - ["tertiary"], - 2.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.75, 4.25], - ["trunk"], - ["match", ["get", "oneway"], 1, 4.25, 4.25], - ["primary"], - 4.25, - ["secondary"], - 3.75, - ["tertiary"], - 2.75, - ["minor"], - 1.75, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 5, 6.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 6.5, 7.5], - ["primary"], - 7.5, - ["secondary"], - 6.5, - ["tertiary", "rail"], - 5.5, - ["minor"], - 3.5, - ["transit", "track", "path"], - 2.5, - 2.5 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 8.5, 10.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 10.5, 13.5], - ["primary"], - 13.5, - ["secondary"], - 11.5, - ["tertiary", "rail"], - 9.5, - ["minor"], - 7.5, - ["transit", "track", "path"], - 6.5, - 6.5 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 117, - ["secondary"], - 112, - ["tertiary"], - 107, - ["minor"], - 97, - 92 - ] - ] - } - }, - { - "id": "bridge-l1_road_track", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 14, - "filter": [ - "all", - ["==", "class", "track"], - ["==", "layer", 1], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "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-offset": 0, - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 14, - 0, - 15, - 1.1, - 16, - 1.1, - 18, - 2, - 20, - 3 - ] - } - }, - { - "id": "bridge-l1_road_path", - "type": "line", - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 14, - "filter": [ - "all", - ["in", "class", "path"], - ["==", "layer", 1], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [15, 0.1], - [20, 0.4] - ] - }, - "line-color": "rgba(115, 115, 115, 1)", - "line-dasharray": { - "stops": [ - [14, [3, 1]], - [15, [6, 2]], - [16, [9, 3]], - [17, [12, 4]], - [18, [15, 5]] - ] - }, - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 15, - 1.1, - 20, - 3 - ] - } - }, - { - "id": "bridge-l1_public_transport", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 10, - "filter": [ - "all", - ["==", "layer", 1], - ["in", "class", "rail", "transit"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "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-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", "funicular"], - ["match", ["get", "service"], ["yard", "siding"], 0, 1], - 0 - ], - 0 - ], - 14.5, - 1 - ], - "line-width": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.2, 0.5], - 0.2 - ], - 0.2 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.1, 1], - 1 - ], - ["cable_car"], - 1, - 0.75 - ], - 18, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 1.5, 2], - 2 - ], - ["cable_car"], - 2, - 1.5 - ] - ] - } - }, - { - "id": "omt_bridge_road_casing", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 10, - "filter": [ - "all", - ["==", "brunnel", "bridge"], - [ - "!in", - "class", - "rail", - "ferry", - "path", - "transit", - "cable_car", - "gondola" - ], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": 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-offset": 0, - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 4], - ["trunk"], - 4, - 3 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5, 5], - ["primary"], - 5, - ["secondary"], - 4.5, - ["tertiary"], - 3.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 3.5, 5.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5.5, 5.5], - ["primary"], - 5.5, - ["secondary"], - 5, - ["tertiary"], - 4, - ["minor"], - 3, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 6.5, 8], - ["trunk"], - ["match", ["get", "oneway"], 1, 8, 9], - ["primary"], - 9, - ["secondary"], - 8, - ["tertiary"], - 7, - ["minor"], - 5, - ["track"], - 1.1, - 4 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 10, 12], - ["trunk"], - ["match", ["get", "oneway"], 1, 12, 15], - ["primary"], - 15, - ["secondary"], - 13, - ["tertiary"], - 11, - ["minor"], - 9, - ["track"], - 1.1, - 8 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 120, - ["secondary"], - 115, - ["tertiary"], - 110, - ["minor"], - 100, - ["track"], - 3, - 95 - ] - ] - } - }, - { - "id": "bridge-l2_road_casing", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 10, - "filter": [ - "all", - [">", "layer", 1], - [ - "!in", - "class", - "rail", - "ferry", - "path", - "transit", - "cable_car", - "gondola" - ], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "layout": { - "line-cap": "butt", - "line-join": "round", - "visibility": "visible" - }, - "paint": { - "line-blur": 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-offset": 0, - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 4], - ["trunk"], - 4, - 3 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.5, 5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5, 5], - ["primary"], - 5, - ["secondary"], - 4.5, - ["tertiary"], - 3.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 3.5, 5.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 5.5, 5.5], - ["primary"], - 5.5, - ["secondary"], - 5, - ["tertiary"], - 4, - ["minor"], - 3, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 6.5, 8], - ["trunk"], - ["match", ["get", "oneway"], 1, 8, 9], - ["primary"], - 9, - ["secondary"], - 8, - ["tertiary"], - 7, - ["minor"], - 5, - ["track"], - 1.1, - 4 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 10, 12], - ["trunk"], - ["match", ["get", "oneway"], 1, 12, 15], - ["primary"], - 15, - ["secondary"], - 13, - ["tertiary"], - 11, - ["minor"], - 9, - ["track"], - 1.1, - 8 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 120, - ["secondary"], - 115, - ["tertiary"], - 110, - ["minor"], - 100, - ["track"], - 3, - 95 - ] - ] - } - }, - { - "id": "omt_bridge_fill", - "type": "line", - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 10, - "filter": [ - "all", - ["==", "brunnel", "bridge"], - ["!in", "class", "ferry", "cable_car", "gondola"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "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"], - "rgb(253,252,251)", - "rgb(255,255,255)" - ], - 15, - [ - "match", - ["get", "class"], - ["motorway", "trunk"], - "rgb(255, 224, 138)", - ["rail", "path", "track"], - "rgb(253,252,251)", - "rgb(255,255,255)" - ] - ], - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 2.75], - ["trunk"], - 2.75, - 2 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 3.75], - ["trunk"], - ["match", ["get", "oneway"], 1, 3.75, 3.75], - ["primary"], - 3.75, - ["secondary"], - 3.25, - ["tertiary"], - 2.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.75, 4.25], - ["trunk"], - ["match", ["get", "oneway"], 1, 4.25, 4.25], - ["primary"], - 4.25, - ["secondary"], - 3.75, - ["tertiary"], - 2.75, - ["minor"], - 1.75, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 5, 6.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 6.5, 7.5], - ["primary"], - 7.5, - ["secondary"], - 6.5, - ["tertiary", "rail"], - 5.5, - ["minor"], - 3.5, - ["transit", "track", "path"], - 2.5, - 2.5 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 8.5, 10.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 10.5, 13.5], - ["primary"], - 13.5, - ["secondary"], - 11.5, - ["tertiary", "rail"], - 9.5, - ["minor"], - 7.5, - ["transit", "track", "path"], - 6.5, - 6.5 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 117, - ["secondary"], - 112, - ["tertiary"], - 107, - ["minor"], - 97, - 92 - ] - ] - } - }, - { - "id": "bridge-l2_fill", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 10, - "filter": [ - "all", - [">", "layer", 1], - ["!in", "class", "ferry", "cable_car", "gondola"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "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"], - [ - "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"], - [ - "match", - ["get", "subclass"], - "funicular", - "rgba(243,243,246,0)", - "rgb(243,243,246)" - ], - "rgb(255,255,255)" - ] - ], - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 10, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 2.75], - ["trunk"], - 2.75, - 2 - ], - 12, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 1.5, 3.75], - ["trunk"], - ["match", ["get", "oneway"], 1, 3.75, 3.75], - ["primary"], - 3.75, - ["secondary"], - 3.25, - ["tertiary"], - 2.25, - 0 - ], - 13, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 2.75, 4.25], - ["trunk"], - ["match", ["get", "oneway"], 1, 4.25, 4.25], - ["primary"], - 4.25, - ["secondary"], - 3.75, - ["tertiary"], - 2.75, - ["minor"], - 1.75, - 0 - ], - 15, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 5, 6.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 6.5, 7.5], - ["primary"], - 7.5, - ["secondary"], - 6.5, - ["tertiary", "rail"], - 5.5, - ["minor"], - 3.5, - ["transit", "track", "path"], - 2.5, - 2.5 - ], - 16, - [ - "match", - ["get", "class"], - ["motorway"], - ["match", ["get", "ramp"], 1, 8.5, 10.5], - ["trunk"], - ["match", ["get", "oneway"], 1, 10.5, 13.5], - ["primary"], - 13.5, - ["secondary"], - 11.5, - ["tertiary", "rail"], - 9.5, - ["minor"], - 7.5, - ["transit", "track", "path"], - 6.5, - 6.5 - ], - 20, - [ - "match", - ["get", "class"], - ["motorway", "trunk", "primary", "rail"], - 117, - ["secondary"], - 112, - ["tertiary"], - 107, - ["minor"], - 97, - 92 - ] - ] - } - }, - { - "id": "omt_bridge_road_track", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 14, - "filter": [ - "all", - ["==", "class", "track"], - ["==", "brunnel", "bridge"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "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-offset": 0, - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 14, - 0, - 15, - 1.1, - 16, - 1.1, - 18, - 2, - 20, - 3 - ] - } - }, - { - "id": "bridge-l2_road_track", - "type": "line", - "metadata": { "maputnik:comment": "casing color for motorway is brown" }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 14, - "filter": [ - "all", - [">", "layer", 1], - ["==", "class", "track"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "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-offset": 0, - "line-opacity": 1, - "line-width": [ - "interpolate", - ["exponential", 2], - ["zoom"], - 14, - 0, - 15, - 1.1, - 16, - 1.1, - 18, - 2, - 20, - 3 - ] - } - }, - { - "id": "omt_bridge_road_path", - "type": "line", - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 14, - "filter": [ - "all", - ["in", "class", "path"], - ["==", "brunnel", "bridge"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [15, 0.1], - [20, 0.4] - ] - }, - "line-color": "rgba(115, 115, 115, 1)", - "line-dasharray": { - "stops": [ - [14, [3, 1]], - [15, [6, 2]], - [16, [9, 3]], - [17, [12, 4]], - [18, [15, 5]] - ] - }, - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 15, - 1.1, - 20, - 3 - ] - } - }, - { - "id": "bridge-l2_road_path", - "type": "line", - "metadata": { - "maputnik:comment": "cannot be in the same layer as road_casings because dasharray doesn't support expressions" - }, - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 14, - "filter": [ - "all", - [">", "layer", 1], - ["in", "class", "path"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "layout": { - "line-cap": "butt", - "line-join": "bevel", - "visibility": "visible" - }, - "paint": { - "line-blur": { - "stops": [ - [15, 0.1], - [20, 0.4] - ] - }, - "line-color": "rgba(115, 115, 115, 1)", - "line-dasharray": { - "stops": [ - [14, [3, 1]], - [15, [6, 2]], - [16, [9, 3]], - [17, [12, 4]], - [18, [15, 5]] - ] - }, - "line-opacity": { - "stops": [ - [14, 0], - [15, 1] - ] - }, - "line-width": [ - "interpolate", - ["exponential", 1.5], - ["zoom"], - 15, - 1.1, - 20, - 3 - ] - } - }, - { - "id": "omt_bridge_public_transport", - "type": "line", - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 10, - "filter": [ - "all", - ["==", "brunnel", "bridge"], - ["in", "class", "rail", "transit"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "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-opacity": [ - "interpolate", - ["linear"], - ["zoom"], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge", "funicular"], - ["match", ["get", "service"], ["yard", "siding"], 0, 1], - 0 - ], - 0 - ], - 14.5, - 1 - ], - "line-width": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.2, 0.5], - 0.2 - ], - 0.2 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.1, 1], - 1 - ], - ["cable_car"], - 1, - 0.75 - ], - 18, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 1.5, 2], - 2 - ], - ["cable_car"], - 2, - 1.5 - ] - ] - } - }, - { - "id": "bridge-l2_public_transport", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 10, - "filter": [ - "all", - [">", "layer", 1], - ["in", "class", "rail", "transit", "cable_car", "gondola"], - ["==", "$type", "LineString"], - ["!=", "subclass", "covered_bridge"] - ], - "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-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", "funicular"], - ["match", ["get", "service"], ["yard", "siding"], 0, 1], - 0 - ], - 0 - ], - 14.5, - 1 - ], - "line-width": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.2, 0.5], - 0.2 - ], - 0.2 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 0.1, 1], - 1 - ], - ["cable_car"], - 1, - 0.75 - ], - 18, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 1.5, 2], - 2 - ], - ["cable_car"], - 2, - 1.5 - ] - ] - } - }, - { - "id": "spot_elevation", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "spot_elevation", - "minzoom": 14, - "filter": [ - "all", - [ - "!in", - "class", - "lake_elevation", - "sinkhole", - "sinkhole_rock", - "sinkhole_scree", - "sinkhole_water", - "sinkhole_ice" - ] - ], - "layout": { - "icon-image": [ - "match", - ["get", "class"], - "spot_elevation", - "dot_dark_grey_3", - "" - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-padding": 30, - "icon-rotate": 0, - "icon-size": 1, - "symbol-placement": "point", - "text-allow-overlap": false, - "text-anchor": "center", - "text-field": ["get", "ele"], - "text-font": ["Frutiger Neue Regular"], - "text-ignore-placement": false, - "text-keep-upright": false, - "text-line-height": 0.9, - "text-optional": false, - "text-radial-offset": 0.3, - "text-size": ["interpolate", ["linear"], ["zoom"], 14, 10.5, 18, 13], - "text-variable-anchor": [ - "literal", - ["bottom-left", "top-left", "bottom-right", "top-right"] - ], - "visibility": "visible" - }, - "paint": { - "icon-color": "#000000", - "icon-opacity": 0.8, - "text-color": "rgba(80, 80, 80, 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 - ], - "text-opacity": ["literal", 1] - } - }, - { - "id": "water_name_point_label", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "water_name", - "filter": ["all", ["==", "$type", "Point"], ["==", "class", "lake"]], - "layout": { - "symbol-placement": "point", - "symbol-spacing": 350, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-keep-upright": true, - "text-letter-spacing": 0.05, - "text-max-width": 1000, - "text-pitch-alignment": "map", - "text-rotation-alignment": "viewport", - "text-size": ["interpolate", ["linear"], ["zoom"], 10, 10.5, 16, 16], - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(20, 136, 205, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.7)", - "text-halo-width": 1 - } - }, - { - "id": "omt_aerodrome_label_heli", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "aeroway", - "minzoom": 14, - "filter": [ - "any", - ["==", "class", "helipad"], - ["==", "class", "heliport"] - ], - "layout": { - "icon-image": "helicopter_grey", - "icon-size": 1, - "text-anchor": "left", - "text-field": ["literal", ""], - "text-font": ["Frutiger Neue Condensed Regular"], - "text-offset": [1, 0.1], - "text-size": ["step", ["zoom"], 0, 17, 16], - "visibility": "none" - } - }, - { - "id": "omt_waterway_line_label", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "waterway", - "minzoom": 9, - "filter": ["all", ["==", "$type", "LineString"]], - "layout": { - "symbol-placement": "line", - "symbol-spacing": 650, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-keep-upright": true, - "text-letter-spacing": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - 0.1, - 12, - ["match", ["get", "class"], ["river"], 0.4, 0.2] - ], - "text-max-width": 9999, - "text-padding": 0, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "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] - ] - ] - }, - "paint": { - "text-color": "rgba(20, 136, 205, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": 2 - } - }, - { - "id": "waterway_line_label", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "waterway", - "minzoom": 9, - "filter": [ - "all", - ["==", "$type", "LineString"], - ["!=", "intermittent", 1] - ], - "layout": { - "symbol-placement": "line", - "symbol-spacing": 650, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-keep-upright": true, - "text-letter-spacing": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - 0.1, - 12, - ["match", ["get", "class"], ["river"], 0.4, 0.2] - ], - "text-max-width": 9999, - "text-padding": 0, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "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] - ] - ] - }, - "paint": { - "text-color": [ - "match", - ["get", "intermittent"], - 1, - "rgb(64, 64, 64)", - "rgb(20, 136, 205)" - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": 2 - } - }, - { - "id": "omt_transportation_label", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "transportation_name", - "minzoom": 13, - "filter": [ - "all", - ["!in", "class", "motorway", "trunk"], - ["==", "$type", "LineString"] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": [ - "interpolate", - ["linear"], - ["zoom"], - 15, - 200, - 18, - 400 - ], - "symbol-z-order": "auto", - "text-anchor": "center", - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Condensed Regular"], - "text-keep-upright": true, - "text-letter-spacing": 0.13, - "text-max-angle": 40, - "text-offset": [0, 0], - "text-padding": 2, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "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-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(60, 60, 70, 1)", - "text-halo-blur": 0.2, - "text-halo-color": "rgba(255, 255, 255, 0.8)", - "text-halo-width": { - "stops": [ - [14, 1.5], - [20, 3] - ] - } - } - }, - { - "id": "transportation_label", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "transportation_name", - "minzoom": 13, - "filter": ["all", ["==", "$type", "LineString"]], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": [ - "interpolate", - ["linear"], - ["zoom"], - 15, - 200, - 18, - 400 - ], - "symbol-z-order": "auto", - "text-anchor": "center", - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Condensed Regular"], - "text-keep-upright": true, - "text-letter-spacing": 0.1, - "text-max-angle": 40, - "text-offset": [0, 0], - "text-padding": 2, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "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-transform": "none", - "visibility": "visible" - }, - "paint": { - "text-color": [ - "match", - ["get", "class"], - ["rail", "transit", "cable_car", "gondola", "chair_lift"], - "rgba(255, 50, 50, 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, - 1.5 - ], - 20, - 3 - ] - } - }, - { - "id": "omt_aerialway", - "type": "line", - "source": "openmaptiles", - "source-layer": "transportation", - "minzoom": 12, - "filter": ["all", ["in", "class", "cable_car", "gondola", "chair_lift"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["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-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 - ] - ], - "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] - ] - } - }, - { - "id": "aerialway", - "type": "line", - "source": "swissmaptiles", - "source-layer": "transportation", - "minzoom": 12, - "filter": ["all", ["in", "class", "cable_car", "gondola", "chair_lift"]], - "layout": { "visibility": "visible" }, - "paint": { - "line-blur": [ - "interpolate", - ["linear"], - ["zoom"], - 8, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["match", ["get", "service"], ["yard", "siding"], 2.5, 0.6], - 0.6 - ], - 0.6 - ], - 14, - [ - "match", - ["get", "class"], - ["rail"], - [ - "match", - ["get", "subclass"], - ["rail", "narrow_gauge"], - ["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-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 - ] - ], - "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] - ] - } - }, - { - "id": "omt_road_number", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "transportation_name", - "minzoom": 11, - "filter": [ - "all", - ["in", "class", "motorway", "trunk", "primary"], - ["has", "ref"], - ["<=", "ref_length", 12], - ["==", "$type", "LineString"] - ], - "layout": { - "icon-allow-overlap": false, - "icon-ignore-placement": false, - "icon-image": "box_white_grey_casing_{ref_length}", - "icon-keep-upright": false, - "icon-offset": [0, -1.3], - "icon-optional": false, - "icon-padding": 2, - "icon-pitch-alignment": "viewport", - "icon-rotation-alignment": "viewport", - "icon-size": 1, - "icon-text-fit": "none", - "symbol-avoid-edges": false, - "symbol-placement": "line", - "symbol-spacing": ["step", ["zoom"], 300, 10, 600, 14, 800], - "symbol-z-order": "auto", - "text-anchor": "center", - "text-field": ["get", "ref"], - "text-font": ["Frutiger Neue Condensed Bold"], - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0, - "text-optional": false, - "text-pitch-alignment": "viewport", - "text-rotation-alignment": "viewport", - "text-size": 10.5, - "visibility": "visible" - }, - "paint": { - "icon-opacity": 1, - "text-color": "rgba(64, 64, 64, 1)", - "text-halo-blur": 0, - "text-halo-color": "rgba(0, 0, 0, 0)", - "text-halo-width": 0, - "text-opacity": 1 - } - }, - { - "id": "road_number", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "transportation_name", - "minzoom": 11, - "filter": [ - "all", - ["in", "class", "motorway", "trunk", "primary"], - ["has", "ref"], - ["<=", "ref_length", 12], - ["==", "$type", "LineString"] - ], - "layout": { - "icon-allow-overlap": false, - "icon-ignore-placement": false, - "icon-image": "box_white_grey_casing_{ref_length}", - "icon-keep-upright": false, - "icon-offset": [0, -1.3], - "icon-optional": false, - "icon-padding": 2, - "icon-pitch-alignment": "viewport", - "icon-rotation-alignment": "viewport", - "icon-size": 1, - "icon-text-fit": "none", - "symbol-avoid-edges": false, - "symbol-placement": "line", - "symbol-spacing": ["step", ["zoom"], 300, 10, 600, 14, 800], - "symbol-z-order": "auto", - "text-anchor": "center", - "text-field": ["get", "ref"], - "text-font": ["Frutiger Neue Condensed Bold"], - "text-justify": "center", - "text-keep-upright": true, - "text-letter-spacing": 0, - "text-optional": false, - "text-pitch-alignment": "viewport", - "text-rotation-alignment": "viewport", - "text-size": 10.5, - "visibility": "visible" - }, - "paint": { - "icon-opacity": 1, - "text-color": "rgba(64, 64, 64, 1)", - "text-halo-blur": 0, - "text-halo-color": "rgba(0, 0, 0, 0)", - "text-halo-width": 0, - "text-opacity": 1 - } - }, - { - "id": "area_name_glacier_point_label", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "area_name", - "minzoom": 14, - "filter": [ - "all", - ["==", "$type", "Point"], - ["in", "subclass", "glacier"] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "point", - "symbol-spacing": { - "stops": [ - [12, 250], - [14, 550] - ] - }, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-keep-upright": true, - "text-letter-spacing": 0.15, - "text-max-width": 99999, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": ["interpolate", ["linear"], ["zoom"], 10, 11, 16, 20] - }, - "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 - } - }, - { - "id": "area_name_glacier_line_label", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "area_name", - "minzoom": 12, - "filter": [ - "all", - ["==", "$type", "LineString"], - ["in", "subclass", "glacier"] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line-center", - "symbol-spacing": { - "stops": [ - [12, 250], - [14, 550] - ] - }, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-keep-upright": true, - "text-letter-spacing": { - "stops": [ - [10, 0.15], - [12, 0.3] - ] - }, - "text-max-width": 99999, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": ["interpolate", ["linear"], ["zoom"], 10, 11, 16, 20] - }, - "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 - } - }, - { - "id": "omt_poi_rank3", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "poi", - "minzoom": 15, - "filter": [ - "all", - [ - "match", - ["get", "class"], - [ - "allottments", - "attraction", - "aerialway", - "bus", - "building", - "cave", - "entrance", - "garden", - "museum", - "railway", - "tower", - "wastewater_plant", - "waterfall" - ], - true, - false - ], - [ - "match", - ["get", "subclass"], - [ - "allottments", - "attraction", - "bus_stop", - "cave", - "building", - "garden", - "halt", - "museum", - "observation", - "station", - "subway_entrance", - "tram_stop", - "wastewater_plant", - "waterfall" - ], - true, - false - ] - ], - "layout": { - "icon-allow-overlap": false, - "icon-ignore-placement": false, - "icon-image": [ - "match", - ["get", "subclass"], - ["tram_stop", "bus_stop", "halt", "station", "subway_entrance"], - "dot_red", - "waterfall", - "waterfall_blue", - "observation", - "observation_tower_grey", - "" - ], - "icon-optional": false, - "icon-rotate": ["to-number", ["get", "direction"]], - "icon-size": 1, - "text-anchor": [ - "match", - ["get", "subclass"], - ["halt", "tram_stop", "bus_stop", "station", "subway_entrance"], - "bottom-left", - ["waterfall", "observation"], - "left", - "center" - ], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Regular"], - "text-justify": "left", - "text-max-width": 10, - "text-offset": [ - "match", - ["get", "subclass"], - "observation", - ["literal", [0.5, 0.2]], - "waterfall", - ["literal", [0.5, 0.1]], - ["literal", [0.4, 0.1]] - ], - "text-optional": false, - "text-size": ["interpolate", ["linear"], ["zoom"], 14, 12, 18, 18], - "visibility": "visible" - }, - "paint": { - "icon-opacity": ["case", ["has", "name"], 1, 0], - "text-color": [ - "match", - ["get", "subclass"], - ["halt", "tram_stop", "bus_stop", "station", "subway_entrance"], - "rgba(255, 50, 50, 1)", - "waterfall", - "rgba(20, 136, 205, 1)", - "rgba(48, 48, 48, 1)" - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2], - "text-opacity": 1 - } - }, - { - "id": "poi_rank3", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "poi", - "minzoom": 15, - "filter": [ - "all", - [ - "match", - ["get", "class"], - [ - "allottments", - "attraction", - "aerialway", - "bus", - "building", - "cave", - "entrance", - "garden", - "museum", - "place_of_worship", - "railway", - "survey_point", - "tower", - "wastewater_plant", - "waterfall" - ], - true, - false - ], - [ - "match", - ["get", "subclass"], - [ - "allottments", - "attraction", - "bus_stop", - "cave", - "building", - "garden", - "halt", - "museum", - "observation", - "station", - "subway_entrance", - "survey_point", - "tram_stop", - "wastewater_plant", - "waterfall", - "" - ], - true, - false - ] - ], - "layout": { - "icon-allow-overlap": false, - "icon-ignore-placement": false, - "icon-image": [ - "match", - ["get", "subclass"], - ["tram_stop", "bus_stop", "halt", "station", "subway_entrance"], - "dot_red", - "waterfall", - "waterfall_blue", - "observation", - "observation_tower_grey", - "survey_point", - "dot_dark_grey_4", - "" - ], - "icon-optional": false, - "icon-rotate": ["to-number", ["get", "direction"]], - "icon-rotation-alignment": "map", - "icon-size": 1, - "text-anchor": [ - "match", - ["get", "subclass"], - [ - "halt", - "tram_stop", - "bus_stop", - "station", - "subway_entrance", - "survey_point" - ], - "bottom-left", - ["waterfall", "observation"], - "left", - "center" - ], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Regular"], - "text-justify": "left", - "text-max-width": 10, - "text-offset": [ - "match", - ["get", "subclass"], - "observation", - ["literal", [0.5, 0.2]], - "waterfall", - ["literal", [0.5, 0.1]], - ["literal", [0.4, 0.1]] - ], - "text-optional": false, - "text-padding": 2, - "text-size": ["interpolate", ["linear"], ["zoom"], 14, 12, 18, 18], - "visibility": "visible" - }, - "paint": { - "icon-opacity": ["case", ["has", "name"], 1, 0], - "text-color": [ - "match", - ["get", "subclass"], - ["halt", "tram_stop", "bus_stop", "station", "subway_entrance"], - "rgba(255, 50, 50, 1)", - "waterfall", - "rgba(20, 136, 205, 1)", - "rgba(48, 48, 48, 1)" - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2], - "text-opacity": [ - "step", - ["zoom"], - 0, - 15, - ["match", ["get", "class"], "college", 0, 1], - 16, - 1 - ] - } - }, - { - "id": "omt_poi_rank2", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "poi", - "minzoom": 13, - "filter": [ - "any", - [ - "match", - ["get", "class"], - [ - "cemetery", - "tower", - "dam", - "ferry_terminal", - "funicular", - "attraction", - "fuel", - "golf", - "golf_course", - "horse_racing", - "hospital", - "military", - "monastery", - "park", - "pitch", - "place_of_worship", - "prison", - "ruins", - "sports_centre", - "stadium", - "swimming_pool", - "power", - "weir", - "zoo" - ], - true, - false - ], - ["match", ["get", "subclass"], "camp_site", true, false] - ], - "layout": { - "icon-allow-overlap": false, - "icon-ignore-placement": false, - "icon-image": [ - "step", - ["zoom"], - [ - "match", - ["get", "class"], - ["place_of_worship", "monastery"], - "dot_circle_dark_grey_8", - [ - "match", - ["get", "subclass"], - ["camp_site", "caravan_site"], - "camping_grey", - ["golf_course", "golf"], - "golf_grey", - "ferry_terminal", - "dot_blue", - "wind_turbine", - "windturbine_grey", - "communications_tower", - "communications_tower_grey", - "tower", - "dot_circle_dark_grey_8", - "" - ] - ], - 15, - [ - "match", - ["get", "class"], - ["place_of_worship", "monastery"], - "dot_circle_dark_grey_10", - [ - "match", - ["get", "subclass"], - ["camp_site", "caravan_site"], - "camping_grey", - ["golf_course", "golf"], - "golf_grey", - "ferry_terminal", - "dot_blue", - "wind_turbine", - "windturbine_grey", - "communications_tower", - "communications_tower_grey", - "tower", - "dot_circle_dark_grey_10", - "" - ] - ], - 16, - [ - "match", - ["get", "class"], - ["place_of_worship", "monastery"], - "dot_circle_dark_grey_12", - [ - "match", - ["get", "subclass"], - ["camp_site", "caravan_site"], - "camping_grey", - ["golf_course", "golf"], - "golf_grey", - "hospital", - "hospital_grey", - "ferry_terminal", - "dot_blue", - "wind_turbine", - "windturbine_grey", - "communications_tower", - "communications_tower_grey", - "tower", - "dot_circle_dark_grey_12", - "" - ] - ] - ], - "icon-size": 1, - "text-anchor": [ - "match", - ["get", "class"], - ["place_of_worship", "monastery"], - "left", - [ - "match", - ["get", "subclass"], - [ - "caravan_site", - "camp_site", - "golf_course", - "golf", - "hospital", - "communications_tower", - "tower" - ], - "left", - "ferry_terminal", - "bottom-left", - "center" - ] - ], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Regular"], - "text-justify": "left", - "text-letter-spacing": ["match", ["get", "class"], ["park"], 0.05, 0], - "text-max-width": 10, - "text-offset": [ - "match", - ["get", "subclass"], - "ferry_terminal", - ["literal", [0.4, 0.1]], - ["literal", [0.8, 0.1]] - ], - "text-optional": false, - "text-size": ["interpolate", ["linear"], ["zoom"], 14, 12, 18, 18], - "visibility": "visible" - }, - "paint": { - "icon-opacity": [ - "step", - ["zoom"], - 0, - 13, - ["match", ["get", "subclass"], "wind_turbine", 0, 0], - 14, - [ - "match", - ["get", "class"], - ["place_of_worship"], - 1, - [ - "match", - ["get", "subclass"], - [ - "wind_turbine", - "caravan_site", - "camp_site", - "ferry_terminal", - "golf_course", - "golf", - "cemetery", - "stadium", - "park" - ], - 1, - 0 - ] - ], - 15, - 1 - ], - "text-color": [ - "match", - ["get", "subclass"], - "ferry_terminal", - "rgba(20, 136, 205, 1)", - "rgba(48, 48, 48, 1)" - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2], - "text-opacity": [ - "step", - ["zoom"], - 0, - 14, - [ - "match", - ["get", "class"], - [ - "campsite", - "ferry_terminal", - "golf", - "golf_course", - "cemetery", - "ruins", - "stadium", - "park", - "pitch" - ], - 1, - 0 - ], - 15, - [ - "match", - ["get", "class"], - [ - "campsite", - "ferry_terminal", - "golf", - "golf_course", - "cemetery", - "stadium", - "park", - "pitch", - "place_of_worship", - "sports_centre", - "zoo" - ], - 1, - 0 - ], - 16, - [ - "match", - ["get", "class"], - [ - "campsite", - "ferry_terminal", - "golf", - "golf_course", - "cemetery", - "stadium", - "park", - "pitch", - "place_of_worship", - "sports_centre", - "zoo" - ], - 1, - 0 - ], - 17, - 1 - ] - } - }, - { - "id": "poi_rank2", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "poi", - "minzoom": 13, - "filter": [ - "any", - [ - "match", - ["get", "class"], - [ - "cemetery", - "tower", - "dam", - "ferry_terminal", - "funicular", - "attraction", - "fuel", - "golf", - "golf_course", - "horse_racing", - "military", - "monastery", - "park", - "pitch", - "prison", - "ruins", - "sports_centre", - "stadium", - "swimming_pool", - "power", - "weir", - "zoo" - ], - true, - false - ], - ["match", ["get", "subclass"], "camp_site", true, false] - ], - "layout": { - "icon-allow-overlap": false, - "icon-ignore-placement": false, - "icon-image": [ - "step", - ["zoom"], - [ - "match", - ["get", "subclass"], - "church_tower", - "dot_circle_dark_grey_8", - ["golf_course", "golf"], - "golf_grey", - "ferry_terminal", - "dot_blue", - "funicular_stop", - "dot_red", - "wind_turbine", - "windturbine_grey", - "communications_tower", - "communications_tower_grey", - "" - ], - 15, - [ - "match", - ["get", "subclass"], - ["camp_site", "caravan_site"], - "camping_grey", - "church_tower", - "dot_circle_dark_grey_10", - ["golf_course", "golf"], - "golf_grey", - "ferry_terminal", - "dot_blue", - "funicular_stop", - "dot_red", - "wind_turbine", - "windturbine_grey", - "communications_tower", - "communications_tower_grey", - "" - ], - 16, - [ - "match", - ["get", "subclass"], - ["camp_site", "caravan_site"], - "camping_grey", - "church_tower", - "dot_circle_dark_grey_12", - ["golf_course", "golf"], - "golf_grey", - "ferry_terminal", - "dot_blue", - "funicular_stop", - "dot_red", - "hospital", - "hospital_grey", - "wind_turbine", - "windturbine_grey", - "communications_tower", - "communications_tower_grey", - "" - ] - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-size": 1, - "text-anchor": [ - "match", - ["get", "class"], - ["monastery"], - "left", - [ - "match", - ["get", "subclass"], - [ - "caravan_site", - "camp_site", - "church_tower", - "golf_course", - "golf", - "hospital", - "communications_tower" - ], - "left", - ["ferry_terminal", "funicular_stop"], - "bottom-left", - "center" - ] - ], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Regular"], - "text-justify": "left", - "text-letter-spacing": ["match", ["get", "class"], ["park"], 0.05, 0], - "text-max-width": 10, - "text-offset": [ - "match", - ["get", "subclass"], - ["ferry_terminal", "funicular_stop"], - ["literal", [0.4, 0.1]], - ["literal", [0.8, 0.1]] - ], - "text-optional": true, - "text-size": ["interpolate", ["linear"], ["zoom"], 14, 12, 18, 18], - "visibility": "visible" - }, - "paint": { - "icon-opacity": [ - "step", - ["zoom"], - 0, - 13, - ["match", ["get", "subclass"], "wind_turbine", 0, 0], - 14, - [ - "match", - ["get", "class"], - ["place_of_worship"], - 1, - [ - "match", - ["get", "subclass"], - [ - "wind_turbine", - "caravan_site", - "camp_site", - "ferry_terminal", - "funicular_stop", - "golf_course", - "golf", - "cemetery", - "stadium", - "park" - ], - 1, - 0 - ] - ], - 15, - 1 - ], - "text-color": [ - "match", - ["get", "subclass"], - "ferry_terminal", - "rgba(20, 136, 205, 1)", - "funicular_stop", - "rgba(255, 50, 50, 1)", - "weir", - "rgba(20, 136, 205, 1)", - "rgba(48, 48, 48, 1)" - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2], - "text-opacity": [ - "step", - ["zoom"], - 0, - 14, - [ - "match", - ["get", "class"], - [ - "ferry_terminal", - "funicular", - "golf", - "golf_course", - "cemetery", - "ruins", - "stadium", - "park", - "pitch" - ], - 1, - 0 - ], - 15, - [ - "match", - ["get", "class"], - [ - "campsite", - "ferry_terminal", - "funicular", - "golf", - "golf_course", - "cemetery", - "stadium", - "park", - "pitch", - "place_of_worship", - "sports_centre", - "zoo" - ], - 1, - 0 - ], - 16, - [ - "match", - ["get", "class"], - [ - "campsite", - "ferry_terminal", - "funicular", - "golf", - "golf_course", - "cemetery", - "stadium", - "park", - "pitch", - "place_of_worship", - "sports_centre", - "zoo" - ], - 1, - 0 - ], - 17, - 1 - ] - } - }, - { - "id": "peaks_other", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "mountain_peak", - "minzoom": 15, - "maxzoom": 24, - "filter": [ - "match", - ["get", "class"], - ["rocky_knoll", "saddle"], - true, - false - ], - "layout": { - "icon-allow-overlap": false, - "icon-anchor": "center", - "icon-ignore-placement": false, - "icon-image": "dot_dark_grey_3", - "icon-offset": [0, 0], - "icon-optional": false, - "icon-padding": 0, - "icon-pitch-alignment": "auto", - "icon-rotation-alignment": "auto", - "icon-size": 1, - "symbol-placement": "point", - "symbol-z-order": ["literal", "auto"], - "text-allow-overlap": false, - "text-anchor": "center", - "text-field": [ - "format", - ["get", "name:latin"], - {}, - "\n", - {}, - ["get", "ele"], - { "font-scale": 0.75 } - ], - "text-font": ["Frutiger Neue Regular"], - "text-ignore-placement": false, - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-line-height": 1.15, - "text-max-width": 8, - "text-offset": [0, 0], - "text-optional": false, - "text-padding": 2, - "text-radial-offset": 0.3, - "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 - ] - ], - "text-variable-anchor": [ - "literal", - ["bottom-left", "top-left", "bottom-right", "top-right"] - ], - "visibility": "visible" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "icon-halo-blur": 0, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "icon-opacity": 1, - "text-color": "rgba(48, 48, 48, 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 - ], - "text-opacity": 1 - } - }, - { - "id": "omt_peaks_rank3+", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "mountain_peak", - "minzoom": 15, - "maxzoom": 24, - "filter": [ - "all", - [">=", "rank", 3], - ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"] - ], - "layout": { - "icon-allow-overlap": false, - "icon-anchor": "center", - "icon-ignore-placement": false, - "icon-image": [ - "step", - ["zoom"], - "", - 10, - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-padding": 0, - "icon-pitch-alignment": "auto", - "icon-rotation-alignment": "auto", - "icon-size": 1, - "symbol-placement": "point", - "symbol-z-order": ["literal", "auto"], - "text-allow-overlap": false, - "text-anchor": "bottom-left", - "text-field": [ - "format", - ["get", "name:latin"], - {}, - "\n", - {}, - ["get", "ele"], - { "font-scale": 0.75 } - ], - "text-font": ["Frutiger Neue Regular"], - "text-ignore-placement": false, - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-line-height": 1.15, - "text-max-width": 8, - "text-offset": [0, 0], - "text-optional": false, - "text-padding": 2, - "text-radial-offset": 0.3, - "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 - ] - ], - "visibility": "visible" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "icon-halo-blur": 0, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "icon-opacity": 1, - "text-color": "rgba(48, 48, 48, 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 - ], - "text-opacity": 1 - } - }, - { - "id": "peaks_rank3+", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "mountain_peak", - "minzoom": 14, - "maxzoom": 24, - "filter": [ - "all", - [">=", "rank", 3], - ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"] - ], - "layout": { - "icon-allow-overlap": false, - "icon-anchor": "center", - "icon-ignore-placement": false, - "icon-image": [ - "step", - ["zoom"], - "", - 10, - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-padding": 0, - "icon-pitch-alignment": "auto", - "icon-rotation-alignment": "auto", - "icon-size": 1, - "symbol-placement": "point", - "symbol-z-order": ["literal", "auto"], - "text-allow-overlap": false, - "text-anchor": "bottom-left", - "text-field": [ - "format", - ["get", "name:latin"], - {}, - "\n", - {}, - ["get", "ele"], - { "font-scale": 0.75 } - ], - "text-font": ["Frutiger Neue Regular"], - "text-ignore-placement": false, - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-line-height": 1.15, - "text-max-width": 8, - "text-offset": [0, 0], - "text-optional": false, - "text-padding": 2, - "text-radial-offset": 0.3, - "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 - ] - ], - "visibility": "visible" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "icon-halo-blur": 0, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "icon-opacity": 1, - "text-color": "rgba(48, 48, 48, 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 - ], - "text-opacity": 1 - } - }, - { - "id": "omt_peaks_rank2", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "mountain_peak", - "minzoom": 11, - "maxzoom": 24, - "filter": [ - "all", - ["==", "rank", 2], - ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"] - ], - "layout": { - "icon-allow-overlap": false, - "icon-anchor": "center", - "icon-ignore-placement": false, - "icon-image": [ - "step", - ["zoom"], - "", - 10, - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-padding": 0, - "icon-pitch-alignment": "auto", - "icon-rotation-alignment": "auto", - "icon-size": 1, - "symbol-placement": "point", - "symbol-z-order": ["literal", "auto"], - "text-allow-overlap": false, - "text-anchor": "bottom-left", - "text-field": [ - "format", - ["get", "name:latin"], - {}, - "\n", - {}, - ["get", "ele"], - { "font-scale": 0.75 } - ], - "text-font": ["Frutiger Neue Regular"], - "text-ignore-placement": false, - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-line-height": 1.15, - "text-max-width": 8, - "text-offset": [0, 0], - "text-optional": false, - "text-padding": 2, - "text-radial-offset": 0.3, - "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 - ] - ], - "visibility": "visible" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "icon-halo-blur": 0, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "icon-opacity": 1, - "text-color": "rgba(48, 48, 48, 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 - ], - "text-opacity": 1 - } - }, - { - "id": "peaks_rank2", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "mountain_peak", - "minzoom": 11, - "maxzoom": 24, - "filter": [ - "all", - ["==", "rank", 2], - ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"] - ], - "layout": { - "icon-allow-overlap": false, - "icon-anchor": "center", - "icon-ignore-placement": false, - "icon-image": [ - "step", - ["zoom"], - "", - 10, - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-padding": 0, - "icon-pitch-alignment": "auto", - "icon-rotation-alignment": "auto", - "icon-size": 1, - "symbol-placement": "point", - "symbol-z-order": ["literal", "auto"], - "text-allow-overlap": false, - "text-anchor": "bottom-left", - "text-field": [ - "format", - ["get", "name:latin"], - {}, - "\n", - {}, - ["get", "ele"], - { "font-scale": 0.75 } - ], - "text-font": ["Frutiger Neue Regular"], - "text-ignore-placement": false, - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-line-height": 1.15, - "text-max-width": 8, - "text-offset": [0, 0], - "text-optional": false, - "text-padding": 2, - "text-radial-offset": 0.3, - "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 - ] - ], - "visibility": "visible" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "icon-halo-blur": 0, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "icon-opacity": 1, - "text-color": "rgba(48, 48, 48, 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 - ], - "text-opacity": 1 - } - }, - { - "id": "omt_peaks_rank1", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "mountain_peak", - "minzoom": 10, - "maxzoom": 24, - "filter": [ - "all", - ["==", "rank", 1], - ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"] - ], - "layout": { - "icon-allow-overlap": false, - "icon-anchor": "center", - "icon-ignore-placement": false, - "icon-image": [ - "step", - ["zoom"], - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-padding": 0, - "icon-pitch-alignment": "auto", - "icon-rotation-alignment": "auto", - "icon-size": 1, - "symbol-placement": "point", - "symbol-z-order": ["literal", "auto"], - "text-allow-overlap": false, - "text-anchor": "bottom-left", - "text-field": [ - "format", - ["get", "name:latin"], - {}, - "\n", - {}, - ["get", "ele"], - { "font-scale": 0.75 } - ], - "text-font": ["Frutiger Neue Regular"], - "text-ignore-placement": false, - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-line-height": 1.15, - "text-max-width": 8, - "text-optional": false, - "text-padding": 10, - "text-radial-offset": 0.3, - "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 - ] - ], - "visibility": "visible" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "icon-halo-blur": 0, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "icon-opacity": [ - "step", - ["zoom"], - 0, - 9, - ["case", ["<=", 3200, ["get", "ele"]], 1, 0], - 10, - 1 - ], - "text-color": "rgba(48, 48, 48, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - ["linear"], - ["zoom"], - 10, - 1.5, - 18, - 3 - ], - "text-opacity": [ - "step", - ["zoom"], - 0, - 9, - ["case", ["<=", 3200, ["get", "ele"]], 1, 0], - 10, - 1 - ] - } - }, - { - "id": "peaks_rank1", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "mountain_peak", - "minzoom": 9, - "maxzoom": 24, - "filter": [ - "all", - ["==", "rank", 1], - ["!in", "class", "rocky_knoll", "saddle", "mountain_pass"] - ], - "layout": { - "icon-allow-overlap": false, - "icon-anchor": "center", - "icon-ignore-placement": false, - "icon-image": [ - "step", - ["zoom"], - "dot_dark_grey_4", - 14, - "dot_dark_grey_6", - 18, - "dot_dark_grey_8" - ], - "icon-offset": [0, 0], - "icon-optional": false, - "icon-padding": 2, - "icon-pitch-alignment": "auto", - "icon-rotation-alignment": "auto", - "icon-size": 1, - "symbol-placement": "point", - "symbol-z-order": ["literal", "auto"], - "text-allow-overlap": false, - "text-anchor": "bottom-left", - "text-field": [ - "format", - ["get", "name:latin"], - {}, - "\n", - {}, - ["get", "ele"], - { "font-scale": 0.75 } - ], - "text-font": ["Frutiger Neue Regular"], - "text-ignore-placement": false, - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-line-height": 1.15, - "text-max-width": 8, - "text-optional": false, - "text-padding": 10, - "text-radial-offset": 0.3, - "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 - ] - ], - "visibility": "visible" - }, - "paint": { - "icon-color": "rgba(0, 0, 0, 1)", - "icon-halo-blur": 0, - "icon-halo-color": "rgba(255, 255, 255, 1)", - "icon-halo-width": 0, - "icon-opacity": [ - "step", - ["zoom"], - 0, - 9, - ["case", ["<=", 3200, ["get", "ele"]], 1, 0], - 10, - 1 - ], - "text-color": "rgba(48, 48, 48, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": [ - "interpolate", - ["linear"], - ["zoom"], - 10, - 1.5, - 18, - 3 - ], - "text-opacity": [ - "step", - ["zoom"], - 0, - 9, - ["case", ["<=", 3200, ["get", "ele"]], 1, 0], - 10, - 1 - ] - } - }, - { - "id": "omt_place_other", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "place", - "minzoom": 11, - "maxzoom": 24, - "filter": [ - "all", - [ - "!in", - "class", - "continent", - "country", - "state", - "city", - "town", - "village", - "hamlet", - "isolated_dwelling" - ] - ], - "layout": { - "icon-optional": false, - "icon-size": 1, - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": "center", - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Medium"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.3, 0.2]], - "text-padding": 20, - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 4, - 6, - 16, - 20 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "icon-opacity": [ - "step", - ["zoom"], - 0, - 11, - ["case", [">", 18, ["get", "rank"]], 1, 0], - 13, - 1, - 14, - 0 - ], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 2 - ], - "text-opacity": [ - "step", - ["zoom"], - 0, - 11, - ["case", [">", 18, ["get", "rank"]], 1, 0], - 13, - 1 - ] - } - }, - { - "id": "place_other", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "place", - "minzoom": 11, - "maxzoom": 24, - "filter": [ - "all", - [ - "!in", - "class", - "continent", - "country", - "state", - "city", - "town", - "village", - "hamlet", - "isolated_dwelling" - ] - ], - "layout": { - "icon-optional": false, - "icon-size": 1, - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": "center", - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Medium"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.3, 0.2]], - "text-padding": 20, - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 4, - 6, - 16, - 20 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "icon-opacity": [ - "step", - ["zoom"], - 0, - 11, - ["case", [">", 18, ["get", "rank"]], 1, 0], - 13, - 1, - 14, - 0 - ], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 2 - ], - "text-opacity": [ - "step", - ["zoom"], - 0, - 11, - ["case", [">", 18, ["get", "rank"]], 1, 0], - 13, - 1 - ] - } - }, - { - "id": "omt_poi_rank1", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "poi", - "minzoom": 14, - "filter": [ - "all", - ["in", "subclass", "castle", "station"], - ["in", "class", "castle", "railway"] - ], - "layout": { - "icon-image": [ - "match", - ["get", "subclass"], - "station", - "square_red", - "castle", - "castle_grey", - "" - ], - "icon-size": 1, - "symbol-avoid-edges": true, - "text-anchor": [ - "match", - ["get", "subclass"], - ["castle"], - "left", - "station", - "bottom-left", - "center" - ], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Regular"], - "text-justify": "left", - "text-max-width": 10, - "text-offset": ["literal", [0.8, 0.15]], - "text-optional": false, - "text-padding": 30, - "text-size": ["interpolate", ["linear"], ["zoom"], 13, 13, 18, 20], - "visibility": "visible" - }, - "paint": { - "text-color": [ - "match", - ["get", "subclass"], - "station", - "rgba(255, 50, 50, 1)", - "rgba(48, 48, 48, 1)" - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2], - "text-opacity": 1 - } - }, - { - "id": "poi_rank1", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "poi", - "minzoom": 14, - "filter": [ - "all", - ["in", "subclass", "castle", "station"], - ["in", "class", "castle", "railway"] - ], - "layout": { - "icon-image": [ - "match", - ["get", "subclass"], - "station", - "square_red", - "castle", - "castle_grey", - "" - ], - "icon-size": 1, - "symbol-avoid-edges": true, - "text-anchor": [ - "match", - ["get", "subclass"], - ["castle"], - "left", - "station", - "bottom-left", - "center" - ], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Regular"], - "text-justify": "left", - "text-max-width": 10, - "text-offset": [ - "match", - ["get", "subclass"], - "station", - ["literal", [0.5, 0.15]], - ["literal", [0.8, 0.15]] - ], - "text-optional": false, - "text-padding": 10, - "text-size": ["interpolate", ["linear"], ["zoom"], 13, 13, 18, 20], - "visibility": "visible" - }, - "paint": { - "text-color": [ - "match", - ["get", "subclass"], - "station", - "rgba(255, 50, 50, 1)", - "rgba(48, 48, 48, 1)" - ], - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2], - "text-opacity": 1 - } - }, - { - "id": "omt_place_hamlet_isolated_dwelling", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "place", - "minzoom": 11, - "maxzoom": 24, - "filter": ["all", ["in", "class", "hamlet", "isolated_dwelling"]], - "layout": { - "icon-image": [ - "step", - ["zoom"], - "circle_dark_grey_4", - 12, - "circle_dark_grey_6" - ], - "icon-optional": false, - "icon-size": 1, - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": ["literal", "bottom-left"], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Medium"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.3, 0.2]], - "text-padding": ["interpolate", ["linear"], ["zoom"], 10, 2, 14, 10], - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 4, - 6, - 16, - 18 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "icon-opacity": [ - "step", - ["zoom"], - 0, - 11, - ["case", [">", 16, ["get", "rank"]], 1, 0], - 13, - ["case", [">", 18, ["get", "rank"]], 1, 0], - 14, - 0 - ], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 2 - ], - "text-opacity": [ - "step", - ["zoom"], - 0, - 11, - ["case", [">", 16, ["get", "rank"]], 1, 0], - 13, - ["case", [">", 18, ["get", "rank"]], 1, 0], - 14, - 1 - ] - } - }, - { - "id": "place_hamlet_isolated_dwelling", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "place", - "minzoom": 11, - "maxzoom": 24, - "filter": ["all", ["in", "class", "hamlet", "isolated_dwelling"]], - "layout": { - "icon-image": [ - "step", - ["zoom"], - "circle_dark_grey_4", - 12, - "circle_dark_grey_6" - ], - "icon-optional": false, - "icon-size": 1, - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": ["literal", "bottom-left"], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Medium"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.3, 0.2]], - "text-padding": [ - "interpolate", - ["linear"], - ["zoom"], - 10, - 2, - 13, - 2, - 14, - 0 - ], - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 4, - 6, - 16, - 18 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "icon-opacity": [ - "step", - ["zoom"], - 0, - 11, - ["case", [">", 30, ["get", "rank"]], 1, 0], - 13, - ["case", [">", 31, ["get", "rank"]], 1, 0], - 14, - 0 - ], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 2 - ], - "text-opacity": [ - "step", - ["zoom"], - 0, - 11, - ["case", [">", 30, ["get", "rank"]], 1, 0], - 13, - ["case", [">", 31, ["get", "rank"]], 1, 0], - 14, - 1 - ] - } - }, - { - "id": "omt_place_village", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "place", - "minzoom": 8, - "maxzoom": 18, - "filter": ["all", ["==", "class", "village"]], - "layout": { - "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" - ], - "icon-optional": false, - "icon-size": 1, - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": ["literal", "bottom-left"], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Medium"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.4, 0.2]], - "text-optional": false, - "text-padding": 20, - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 4, - 6, - 10, - 16, - 16, - 28 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "icon-opacity": [ - "step", - ["zoom"], - 0, - 8, - ["case", [">", 16, ["get", "rank"]], 1, 0], - 12, - 1, - 13, - 0 - ], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 2 - ], - "text-opacity": [ - "step", - ["zoom"], - 0, - 8, - ["case", [">", 16, ["get", "rank"]], 1, 0], - 12, - 1 - ] - } - }, - { - "id": "place_village", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "place", - "minzoom": 7, - "maxzoom": 18, - "filter": ["all", ["==", "class", "village"]], - "layout": { - "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" - ], - "icon-optional": false, - "icon-size": 1, - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": ["literal", "bottom-left"], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Medium"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.4, 0.2]], - "text-optional": false, - "text-padding": 20, - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 4, - 6, - 10, - 16, - 16, - 28 - ], - "text-transform": "none", - "visibility": "visible" - }, - "paint": { - "icon-opacity": ["step", ["zoom"], 1, 13, 0], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 2 - ], - "text-opacity": 1 - } - }, - { - "id": "omt_aerodrome_label", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "aerodrome_label", - "minzoom": 11, - "filter": ["all", ["!=", "class", "helipad"]], - "layout": { - "icon-anchor": "center", - "icon-image": [ - "match", - ["get", "class"], - "international", - "airplane_large_grey", - "regional", - "airplane_medium_grey", - "other", - "airplane_small_grey", - "helipad", - "helicopter_grey", - "" - ], - "icon-size": ["interpolate", ["linear"], ["zoom"], 11, 0.7, 14, 1], - "text-anchor": "left", - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Regular"], - "text-justify": "center", - "text-offset": [ - "match", - ["get", "class"], - "helipad", - ["literal", [0.9, 0.2]], - ["literal", [0.9, 0]] - ], - "text-padding": 2, - "text-size": [ - "interpolate", - ["linear"], - ["zoom"], - 11, - ["match", ["get", "class"], "international", 16, "regional", 16, 12], - 14, - ["match", ["get", "class"], "international", 20, "regional", 18, 16] - ], - "text-transform": "none" - }, - "paint": { - "icon-opacity": ["literal", 1], - "text-color": "rgba(64, 64, 64, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.8)", - "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2], - "text-opacity": 1 - } - }, - { - "id": "aerodrome_label", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "aerodrome_label", - "minzoom": 11, - "filter": ["all", ["!=", "class", "helipad"]], - "layout": { - "icon-anchor": "center", - "icon-image": [ - "match", - ["get", "class"], - "international", - "airplane_large_grey", - "regional", - "airplane_medium_grey", - "other", - "airplane_small_grey", - "helipad", - "helicopter_grey", - "" - ], - "icon-size": ["interpolate", ["linear"], ["zoom"], 11, 0.7, 14, 1], - "text-anchor": "left", - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Regular"], - "text-justify": "center", - "text-offset": [ - "match", - ["get", "class"], - "helipad", - ["literal", [0.9, 0.2]], - ["literal", [0.9, 0]] - ], - "text-padding": 2, - "text-size": [ - "interpolate", - ["linear"], - ["zoom"], - 11, - ["match", ["get", "class"], "international", 16, "regional", 16, 12], - 14, - ["match", ["get", "class"], "international", 20, "regional", 18, 16] - ], - "text-transform": "none" - }, - "paint": { - "icon-opacity": ["literal", 1], - "text-color": "rgba(64, 64, 64, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.8)", - "text-halo-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 17, 2], - "text-opacity": 1 - } - }, - { - "id": "omt_water_name_line_label", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "water_name", - "filter": [ - "all", - ["==", "$type", "LineString"], - ["!=", "class", "lake_part"] - ], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "line", - "symbol-spacing": { - "stops": [ - [10, 250], - [13, 450] - ] - }, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-keep-upright": true, - "text-letter-spacing": 0.15, - "text-max-width": 99999, - "text-padding": 2, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": ["interpolate", ["linear"], ["zoom"], 10, 14, 16, 24] - }, - "paint": { - "text-color": "rgba(20, 136, 205, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": 1 - } - }, - { - "id": "water_name_line_label", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "water_name", - "filter": [ - "all", - ["==", "$type", "LineString"], - ["!=", "class", "lake_part"] - ], - "layout": { - "symbol-avoid-edges": false, - "symbol-placement": "line-center", - "symbol-spacing": { - "stops": [ - [10, 250], - [13, 950] - ] - }, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Italic"], - "text-ignore-placement": false, - "text-keep-upright": true, - "text-letter-spacing": 0.15, - "text-max-width": 99999, - "text-padding": 2, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": ["interpolate", ["linear"], ["zoom"], 10, 14, 16, 24] - }, - "paint": { - "text-color": "rgba(20, 136, 205, 1)", - "text-halo-blur": 1, - "text-halo-color": "rgba(242, 242, 242, 0.6)", - "text-halo-width": 1 - } - }, - { - "id": "omt_place_town", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "place", - "minzoom": 6, - "maxzoom": 16, - "filter": ["all", ["==", "class", "town"]], - "layout": { - "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" - ], - "icon-optional": false, - "icon-size": 1, - "symbol-placement": "point", - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": ["literal", "bottom-left"], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Bold"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.35, 0.1]], - "text-padding": 10, - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 4, - 8, - 16, - 32 - ], - "text-transform": "uppercase", - "visibility": "visible" - }, - "paint": { - "icon-opacity": ["step", ["zoom"], 1, 12, 0], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 3 - ], - "text-opacity": 1 - } - }, - { - "id": "place_town", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "place", - "minzoom": 6, - "maxzoom": 16, - "filter": ["all", ["==", "class", "town"]], - "layout": { - "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" - ], - "icon-optional": false, - "icon-size": 1, - "symbol-placement": "point", - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": ["literal", "bottom-left"], - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Bold"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.35, 0.1]], - "text-padding": 10, - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 4, - 8, - 16, - 32 - ], - "text-transform": "uppercase", - "visibility": "visible" - }, - "paint": { - "icon-opacity": ["step", ["zoom"], 1, 12, 0], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 3 - ], - "text-opacity": 1 - } - }, - { - "id": "omt_park_label", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "park", - "minzoom": 8, - "filter": [ - "all", - ["in", "class", "national_park"], - ["==", "$type", "Point"] - ], - "layout": { - "symbol-z-order": ["literal", "auto"], - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Regular"], - "text-padding": ["interpolate", ["linear"], ["zoom"], 10, 2, 14, 10], - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 8, - 14, - 16, - 28 - ] - }, - "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 - } - }, - { - "id": "park_label", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "park", - "minzoom": 8, - "filter": [ - "all", - ["in", "class", "national_park"], - ["==", "$type", "Point"] - ], - "layout": { - "symbol-z-order": ["literal", "auto"], - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Regular"], - "text-padding": ["interpolate", ["linear"], ["zoom"], 10, 2, 14, 10], - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 8, - 14, - 16, - 28 - ] - }, - "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 - } - }, - { - "id": "area_name_massif_label", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "area_name", - "minzoom": 11, - "filter": ["all", ["==", "$type", "Point"], ["in", "subclass", "massif"]], - "layout": { - "symbol-avoid-edges": true, - "symbol-placement": "point", - "symbol-spacing": { - "stops": [ - [12, 250], - [14, 550] - ] - }, - "symbol-z-order": "auto", - "text-allow-overlap": false, - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Regular"], - "text-ignore-placement": false, - "text-keep-upright": true, - "text-letter-spacing": 0.07, - "text-max-width": 99999, - "text-pitch-alignment": "map", - "text-rotation-alignment": "map", - "text-size": ["interpolate", ["linear"], ["zoom"], 10, 14, 16, 23] - }, - "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 - } - }, - { - "id": "omt_place_city", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "place", - "minzoom": 2, - "maxzoom": 14, - "filter": ["all", ["==", "class", "city"]], - "layout": { - "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" - ], - "icon-optional": false, - "icon-size": 1, - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": "bottom-left", - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Bold"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.35, 0.1]], - "text-padding": 10, - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 1, - 11, - 4, - 12, - 16, - 48 - ], - "text-transform": "uppercase", - "visibility": "visible" - }, - "paint": { - "icon-opacity": ["step", ["zoom"], 1, 11, 0], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 3 - ], - "text-opacity": 1 - } - }, - { - "id": "place_city", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "place", - "minzoom": 2, - "maxzoom": 14, - "filter": ["all", ["==", "class", "city"]], - "layout": { - "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" - ], - "icon-optional": false, - "icon-size": 1, - "symbol-sort-key": ["to-number", ["get", "rank"]], - "symbol-z-order": ["literal", "auto"], - "text-anchor": "bottom-left", - "text-field": ["get", "name:latin"], - "text-font": ["Frutiger Neue Condensed Bold"], - "text-justify": "auto", - "text-letter-spacing": 0.025, - "text-max-width": 10, - "text-offset": ["literal", [0.35, 0.1]], - "text-padding": 10, - "text-size": [ - "interpolate", - ["cubic-bezier", 0.5, 0.1, 0.7, 1], - ["zoom"], - 1, - 11, - 4, - 12, - 16, - 48 - ], - "text-transform": "uppercase", - "visibility": "visible" - }, - "paint": { - "icon-opacity": ["step", ["zoom"], 1, 11, 0], - "text-color": "rgba(64, 64, 64, 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, - 0, - 16, - 3 - ], - "text-opacity": 1 - } - }, - { - "id": "omt_place_state", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "place", - "minzoom": 0, - "maxzoom": 8, - "filter": ["all", ["in", "class", "state"]], - "layout": { - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Condensed Regular"], - "text-letter-spacing": 0.12, - "text-max-width": 10, - "text-size": ["interpolate", ["linear"], ["zoom"], 3, 10.5, 6, 16], - "text-transform": "uppercase", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(145, 70, 145, 0.9)", - "text-halo-blur": 1, - "text-halo-color": "rgba(255, 255, 255, 0.8)", - "text-halo-width": 1, - "text-opacity": ["interpolate", ["linear"], ["zoom"], 6, 1, 7, 0] - } - }, - { - "id": "omt_place_country", - "type": "symbol", - "source": "openmaptiles", - "source-layer": "place", - "minzoom": 0, - "maxzoom": 7, - "filter": ["all", ["in", "class", "country"]], - "layout": { - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Condensed Regular"], - "text-letter-spacing": 0.12, - "text-max-width": 10, - "text-size": ["interpolate", ["linear"], ["zoom"], 1, 12, 6, 16], - "text-transform": "uppercase", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(145, 70, 145, 0.9)", - "text-halo-blur": 1, - "text-halo-color": "rgba(255, 255, 255, 0.8)", - "text-halo-width": 1, - "text-opacity": ["interpolate", ["linear"], ["zoom"], 6, 1, 7, 0] - } - }, - { - "id": "place_country", - "type": "symbol", - "source": "swissmaptiles", - "source-layer": "place", - "minzoom": 0, - "maxzoom": 7, - "filter": ["all", ["in", "class", "country"], ["in", "iso_a2", "CH"]], - "layout": { - "text-field": "{name:latin}", - "text-font": ["Frutiger Neue Condensed Regular"], - "text-letter-spacing": 0.12, - "text-max-width": 10, - "text-size": ["interpolate", ["linear"], ["zoom"], 1, 12, 6, 16], - "text-transform": "uppercase", - "visibility": "visible" - }, - "paint": { - "text-color": "rgba(145, 70, 145, 0.9)", - "text-halo-blur": 1, - "text-halo-color": "rgba(255, 255, 255, 0.8)", - "text-halo-width": 1, - "text-opacity": ["interpolate", ["linear"], ["zoom"], 6, 1, 7, 0] - } - } - ], - "id": "256381ff-43ff-4495-ae3b-b227562f0cbe" -} diff --git a/app/charts/map/grey.json b/app/charts/map/grey.json index 7b501def3..0cd916864 100644 --- a/app/charts/map/grey.json +++ b/app/charts/map/grey.json @@ -4147,7 +4147,6 @@ "icon-size": 1, "text-font": ["Frutiger Neue Condensed Bold"], "text-size": 10.5, - "icon-image": "box_white_grey_casing_{ref_length}", "text-field": "{ref}", "visibility": "visible", "icon-offset": [0, -1.3], diff --git a/app/charts/map/map.tsx b/app/charts/map/map.tsx index ee609fda9..b47ccf195 100644 --- a/app/charts/map/map.tsx +++ b/app/charts/map/map.tsx @@ -1,10 +1,11 @@ import { GeoJsonLayer, ScatterplotLayer } from "@deck.gl/layers/typed"; +import { supported } from "@mapbox/mapbox-gl-supported"; import { Button, Theme } from "@mui/material"; import { makeStyles } from "@mui/styles"; import { geoArea } from "d3"; import debounce from "lodash/debounce"; import orderBy from "lodash/orderBy"; -import maplibregl from "maplibre-gl"; +import maplibreglraw from "maplibre-gl"; import React, { useState } from "react"; import Map, { LngLatLike, MapboxEvent } from "react-map-gl"; @@ -25,6 +26,9 @@ import { MapState } from "./map-state"; import { HoverObjectType, useMapTooltip } from "./map-tooltip"; import { getMap, setMap } from "./ref"; +// supported was removed as of maplibre-gl v3.0.0, so we need to add it back +const maplibregl = { ...maplibreglraw, supported }; + const useStyles = makeStyles((theme) => ({ controlButtons: { zIndex: 13, diff --git a/app/package.json b/app/package.json index 92be28fb5..7f7d2858e 100644 --- a/app/package.json +++ b/app/package.json @@ -16,14 +16,14 @@ "@apollo/server-plugin-landing-page-graphql-playground": "^4.0.1", "@babel/standalone": "^7.11.6", "@date-io/date-fns": "^2.13.1", - "@deck.gl/carto": "^8.9.19", - "@deck.gl/core": "^8.9.19", - "@deck.gl/extensions": "^8.9.19", - "@deck.gl/geo-layers": "^8.9.19", - "@deck.gl/layers": "^8.9.19", - "@deck.gl/mapbox": "^8.9.19", - "@deck.gl/mesh-layers": "^8.9.19", - "@deck.gl/react": "^8.9.19", + "@deck.gl/carto": "^8.9.34", + "@deck.gl/core": "^8.9.34", + "@deck.gl/extensions": "^8.9.34", + "@deck.gl/geo-layers": "^8.9.34", + "@deck.gl/layers": "^8.9.34", + "@deck.gl/mapbox": "^8.9.34", + "@deck.gl/mesh-layers": "^8.9.34", + "@deck.gl/react": "^8.9.34", "@dnd-kit/core": "^6.1.0", "@dnd-kit/modifiers": "^7.0.0", "@emotion/react": "^11.8.2", @@ -31,6 +31,7 @@ "@juggle/resize-observer": "^3.2.0", "@lingui/core": "^3.17.2", "@lingui/react": "^3.17.2", + "@mapbox/mapbox-gl-supported": "^2.0.1", "@mdx-js/react": "^1.6.22", "@mui/lab": "^5.0.0-alpha.74", "@mui/material": "^5.5.2", @@ -86,7 +87,7 @@ "isomorphic-unfetch": "^3.0.0", "lodash": "^4.17.20", "make-plural": "6.2.2", - "maplibre-gl": "^2.1.6", + "maplibre-gl": "^3.6.2", "material-ui-popup-state": "^2.0.0", "micro": "^9.3.4", "micro-cors": "^0.1.1", diff --git a/yarn.lock b/yarn.lock index 571833865..9b7121d75 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1137,16 +1137,17 @@ dependencies: "@date-io/core" "^2.13.1" -"@deck.gl/carto@^8.9.19": - version "8.9.19" - resolved "https://registry.yarnpkg.com/@deck.gl/carto/-/carto-8.9.19.tgz#9a93db4708478fd5cf55fdfea6f1ba614af0b854" - integrity sha512-sp7SLn7kPDtHVnSgGt/f+qPquBhxNjXK1WjA95+7cC0M+Zv1COJx8I6ORFsqYzz1oeutvxK3lar3QY54Xsy+pw== - dependencies: - "@loaders.gl/gis" "^3.4.2" - "@loaders.gl/loader-utils" "^3.4.2" - "@loaders.gl/mvt" "^3.4.2" - "@loaders.gl/tiles" "^3.4.2" - "@luma.gl/constants" "^8.5.20" +"@deck.gl/carto@^8.9.34": + version "8.9.34" + resolved "https://registry.yarnpkg.com/@deck.gl/carto/-/carto-8.9.34.tgz#acf0194b2de5745042faf28870caa35da28b7201" + integrity sha512-LJe2Ipd8AKCL1GQiAHRmwa3ubVrlpHVaSAscwGUt5fnFM0J4gTIk5LysTwXBxg5owyCEd4yOgXK3m1PZ+CHu3w== + dependencies: + "@babel/runtime" "^7.0.0" + "@loaders.gl/gis" "^3.4.13" + "@loaders.gl/loader-utils" "^3.4.13" + "@loaders.gl/mvt" "^3.4.13" + "@loaders.gl/tiles" "^3.4.13" + "@luma.gl/constants" "^8.5.21" "@math.gl/web-mercator" "^3.6.2" cartocolor "^4.0.2" d3-array "^3.2.0" @@ -1158,16 +1159,17 @@ pbf "^3.2.1" quadbin "^0.1.9" -"@deck.gl/core@^8.9.19": - version "8.9.19" - resolved "https://registry.yarnpkg.com/@deck.gl/core/-/core-8.9.19.tgz#64ddde78f428466ebdf91d152015af5a57a1125f" - integrity sha512-RyI06YfdPu+F/6VPsYSEPkqdJiaixV+wRyww6ISd8dxrm8ERG+LyTUe6FuJbju9/j0OjfWHs50suK2NaNeP/iw== +"@deck.gl/core@^8.9.34": + version "8.9.34" + resolved "https://registry.yarnpkg.com/@deck.gl/core/-/core-8.9.34.tgz#eaf08295225d2a317acebd944306734fcb4f7169" + integrity sha512-VDne26NevBBvD9Xq6pIBuBt2ffZhzW1COU3IogqhJLhejECiC3RQhWtDRWQqUZpQYKTU2SlyKZcu+Nj7kaLBWA== dependencies: - "@loaders.gl/core" "^3.4.2" - "@loaders.gl/images" "^3.4.2" - "@luma.gl/constants" "^8.5.20" - "@luma.gl/core" "^8.5.20" - "@luma.gl/webgl" "^8.5.20" + "@babel/runtime" "^7.0.0" + "@loaders.gl/core" "^3.4.13" + "@loaders.gl/images" "^3.4.13" + "@luma.gl/constants" "^8.5.21" + "@luma.gl/core" "^8.5.21" + "@luma.gl/webgl" "^8.5.21" "@math.gl/core" "^3.6.2" "@math.gl/sun" "^3.6.2" "@math.gl/web-mercator" "^3.6.2" @@ -1178,28 +1180,30 @@ math.gl "^3.6.2" mjolnir.js "^2.7.0" -"@deck.gl/extensions@^8.9.19": - version "8.9.19" - resolved "https://registry.yarnpkg.com/@deck.gl/extensions/-/extensions-8.9.19.tgz#cccaba6cecc2f639ae0bc9f7c8d3559cdbe36941" - integrity sha512-653Oq8/0jYIbdjmfuXKdPhj2m4rj29rTuZbBFZ4IusYswXz2A0zGcZZLekBFsDarSSNtMw34Z8ejHbbhEQFbAQ== - dependencies: - "@luma.gl/shadertools" "^8.5.20" - -"@deck.gl/geo-layers@^8.9.19": - version "8.9.19" - resolved "https://registry.yarnpkg.com/@deck.gl/geo-layers/-/geo-layers-8.9.19.tgz#a084d4dba71de8e1261fbe4e0f6d382aa37ee9e7" - integrity sha512-j9fjFg1HpLcb1yTPmxz5uNMQrzspYDy6CWC/RvO0LPjLOvkwWDTuARywmccd+YKeAopE0we7gONIks+W6cmObg== - dependencies: - "@loaders.gl/3d-tiles" "^3.4.2" - "@loaders.gl/gis" "^3.4.2" - "@loaders.gl/loader-utils" "^3.4.2" - "@loaders.gl/mvt" "^3.4.2" - "@loaders.gl/schema" "^3.4.2" - "@loaders.gl/terrain" "^3.4.2" - "@loaders.gl/tiles" "^3.4.2" - "@loaders.gl/wms" "^3.4.2" - "@luma.gl/constants" "^8.5.20" - "@luma.gl/experimental" "^8.5.20" +"@deck.gl/extensions@^8.9.34": + version "8.9.34" + resolved "https://registry.yarnpkg.com/@deck.gl/extensions/-/extensions-8.9.34.tgz#9ad3aa38402763643037618b4fc1e27d0f3282a1" + integrity sha512-at2CSs1TXgOM035LWf+fk03r8yXMnokFBVd0QXlECj1izdBvehvhC7npgpqUJooKg0UMWmqUYkUH3uSrkfyIeA== + dependencies: + "@babel/runtime" "^7.0.0" + "@luma.gl/shadertools" "^8.5.21" + +"@deck.gl/geo-layers@^8.9.34": + version "8.9.34" + resolved "https://registry.yarnpkg.com/@deck.gl/geo-layers/-/geo-layers-8.9.34.tgz#3da2db3e5927ca7f6db4d64c65582ff598a04621" + integrity sha512-oXOdNByo8QHNrqjREeIX0btVzsj3aFzJcplatBpdLg6vr/iV8ZdsbRv8WO4CJJI3N6oVKIug2gHWogdIjpxHTg== + dependencies: + "@babel/runtime" "^7.0.0" + "@loaders.gl/3d-tiles" "^3.4.13" + "@loaders.gl/gis" "^3.4.13" + "@loaders.gl/loader-utils" "^3.4.13" + "@loaders.gl/mvt" "^3.4.13" + "@loaders.gl/schema" "^3.4.13" + "@loaders.gl/terrain" "^3.4.13" + "@loaders.gl/tiles" "^3.4.13" + "@loaders.gl/wms" "^3.4.13" + "@luma.gl/constants" "^8.5.21" + "@luma.gl/experimental" "^8.5.21" "@math.gl/core" "^3.6.2" "@math.gl/culling" "^3.6.2" "@math.gl/web-mercator" "^3.6.2" @@ -1207,41 +1211,46 @@ h3-js "^3.7.0" long "^3.2.0" -"@deck.gl/layers@^8.9.19": - version "8.9.19" - resolved "https://registry.yarnpkg.com/@deck.gl/layers/-/layers-8.9.19.tgz#7844a6ecde4fcb0c94fbffe173dba9004fdafdb1" - integrity sha512-yvyCVQdzCPet8e0nSvmLbwgJEIcRK2nWRwF/NwB/y63P3qBEvj0F6Syrh2PC2+YkoYKLmY+C3kzdgh2gc8ktDw== +"@deck.gl/layers@^8.9.34": + version "8.9.34" + resolved "https://registry.yarnpkg.com/@deck.gl/layers/-/layers-8.9.34.tgz#4ba052c4ae9eef958a07fa1a42c32d65e3f9462f" + integrity sha512-kc9Wzk8Zf2XwdG/V0Md6dh6mlJjStkWHKCKQLJOwj9GDwP4KihzYY2xC98CMCgi2/H/lH03xYm3e5EHvwIENww== dependencies: - "@loaders.gl/images" "^3.4.2" - "@loaders.gl/schema" "^3.4.2" - "@luma.gl/constants" "^8.5.20" + "@babel/runtime" "^7.0.0" + "@loaders.gl/images" "^3.4.13" + "@loaders.gl/schema" "^3.4.13" + "@luma.gl/constants" "^8.5.21" "@mapbox/tiny-sdf" "^2.0.5" "@math.gl/core" "^3.6.2" "@math.gl/polygon" "^3.6.2" "@math.gl/web-mercator" "^3.6.2" earcut "^2.2.4" -"@deck.gl/mapbox@^8.9.19": - version "8.9.19" - resolved "https://registry.yarnpkg.com/@deck.gl/mapbox/-/mapbox-8.9.19.tgz#bce73593dd3c4d9189ea7ed3ee47a429601b22e5" - integrity sha512-MmNvAOnxJux7L8FtC8an0NwL7y8rVb2uj6Wkis1TNLJ9fmbKW/6bfmoz4iGp6xDj4O/fqHT3CcvwXu6s8jsbjg== +"@deck.gl/mapbox@^8.9.34": + version "8.9.34" + resolved "https://registry.yarnpkg.com/@deck.gl/mapbox/-/mapbox-8.9.34.tgz#fe6c2e66ba4d46ef741ab4b605ddb7474f1a904e" + integrity sha512-3s34yFRmTe1KUK8TDWGw+1jATHwOpxpTrMjSWSZpR9AMqZ6ykOAkCziAUD4T+KgpqzzP5QJn+twt0mxPBoQ3eg== dependencies: + "@babel/runtime" "^7.0.0" "@types/mapbox-gl" "^2.6.3" -"@deck.gl/mesh-layers@^8.9.19": - version "8.9.19" - resolved "https://registry.yarnpkg.com/@deck.gl/mesh-layers/-/mesh-layers-8.9.19.tgz#e69c1bf345d736db9caa60850bf975f29077a0af" - integrity sha512-jUDEl23Pfo/KHcW7sy1mIAiSBI0ec0aT6GRzsHSV3iuVwTIabuFhEutHVvGc+i/P6AQwLy+9dOuOC7mejf2+dQ== +"@deck.gl/mesh-layers@^8.9.34": + version "8.9.34" + resolved "https://registry.yarnpkg.com/@deck.gl/mesh-layers/-/mesh-layers-8.9.34.tgz#43bf49654b5ed04a69e8de431f673bf13160010f" + integrity sha512-BJClDfB86+zgWOyXjLNfVBgZ8BlaSXWDHWj0vS7UuV79h/6PAdwMBfi28/PNO9A89cCtUd94MkB73G0ni56iTA== dependencies: - "@loaders.gl/gltf" "^3.4.2" - "@luma.gl/constants" "^8.5.20" - "@luma.gl/experimental" "^8.5.20" - "@luma.gl/shadertools" "^8.5.20" + "@babel/runtime" "^7.0.0" + "@loaders.gl/gltf" "^3.4.13" + "@luma.gl/constants" "^8.5.21" + "@luma.gl/experimental" "^8.5.21" + "@luma.gl/shadertools" "^8.5.21" -"@deck.gl/react@^8.9.19": - version "8.9.19" - resolved "https://registry.yarnpkg.com/@deck.gl/react/-/react-8.9.19.tgz#5f214dcce717545e48259f8caf186b67fa4767a6" - integrity sha512-ddoCiVRrbC+c7tosKX3tsmRXJUL32NUmIwgOl0NPsVfJqtfsDRLrBZNDQOATboCa3vdT6gvySsoF+9zQpIxi2Q== +"@deck.gl/react@^8.9.34": + version "8.9.34" + resolved "https://registry.yarnpkg.com/@deck.gl/react/-/react-8.9.34.tgz#10001604f53968e546fbe23e7aeae189dfd2ea20" + integrity sha512-kelU3otxmEtNYQ7gVrVSLvju+StuqqSkDrcJU82igjNalOvjjPGst1H7blQTgk1lEbfHNeddusIYGipefyuImw== + dependencies: + "@babel/runtime" "^7.0.0" "@dependents/detective-less@^3.0.1": version "3.0.2" @@ -2407,260 +2416,260 @@ "@babel/runtime" "^7.20.13" "@lingui/core" "3.17.2" -"@loaders.gl/3d-tiles@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/3d-tiles/-/3d-tiles-3.4.6.tgz#9240e402a7f1b77814e906b7be97d2e90ad1e55f" - integrity sha512-oM+wOg/HeYl8249Eq3fLT6L2ZU1wFXdXcyUsenaUubxuCKbWk/mwFyqHq3NINcy7K56TUlEXwxpaiRiIhZa9WA== +"@loaders.gl/3d-tiles@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/3d-tiles/-/3d-tiles-3.4.14.tgz#c04781acf377e13c16b41eeaa14e46dfc96c90ca" + integrity sha512-cxStTSLIJgRZnkTBYTcp9FPVBQWQlJMzW1LRlaKWiwAHkOKBElszzApIIEvRvZGSrs8k8TUi6BJ1Y41iiANF7w== dependencies: - "@loaders.gl/draco" "3.4.6" - "@loaders.gl/gltf" "3.4.6" - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/math" "3.4.6" - "@loaders.gl/tiles" "3.4.6" + "@loaders.gl/draco" "3.4.14" + "@loaders.gl/gltf" "3.4.14" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/math" "3.4.14" + "@loaders.gl/tiles" "3.4.14" "@math.gl/core" "^3.5.1" "@math.gl/geospatial" "^3.5.1" long "^5.2.1" -"@loaders.gl/core@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/core/-/core-3.4.6.tgz#f0f155d9ea0859e072d205bb74b2c8bb4c3f9510" - integrity sha512-9nang7w+McOg3ZippyFNz0+FuJu4bSkQkwpnIjUEr61JUiwpmRy5IakZP/LnmhZuzCy5+lDFj921md/l8Tduaw== +"@loaders.gl/core@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/core/-/core-3.4.14.tgz#79e5c54112f5bfe398da1718dc4fb661ffa213fd" + integrity sha512-5PFcjv7xC8AYL17juDMrvo8n0Fcwg9s8F4BaM2YCNUsb9RCI2SmLuIFJMcx1GgHO5vL0WiTIKO+JT4n1FuNR6w== dependencies: "@babel/runtime" "^7.3.1" - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/worker-utils" "3.4.6" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/worker-utils" "3.4.14" "@probe.gl/log" "^4.0.1" -"@loaders.gl/draco@3.4.6": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/draco/-/draco-3.4.6.tgz#8679e57b98470d9bf3440dc9d534c947b0e487da" - integrity sha512-FoxmvM0ojT1B5yntyQ/mzrWN55XyOOqPiie99Bs8yLj9+eNAfQoviMfrED1uS6gYVJEHNBmH9wibNaa1LjMTmw== +"@loaders.gl/draco@3.4.14": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/draco/-/draco-3.4.14.tgz#8555d9179db334faaded00d2902c318478a93b07" + integrity sha512-HwNFFt+dKZqFtzI0uVGvRkudFEZXxybJ+ZRsNkBbzAWoMM5L1TpuLs6DPsqPQUIT9HXNHzov18cZI0gK5bTJpg== dependencies: "@babel/runtime" "^7.3.1" - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/schema" "3.4.6" - "@loaders.gl/worker-utils" "3.4.6" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/schema" "3.4.14" + "@loaders.gl/worker-utils" "3.4.14" draco3d "1.5.5" -"@loaders.gl/gis@3.4.6", "@loaders.gl/gis@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/gis/-/gis-3.4.6.tgz#704649063ddfa215de853e09fa92d806e575600e" - integrity sha512-DKG1oBjz7KYe/VInST3Hsnzo+E3cAv9cOvS6EA34YRMSb1T4xOmdvTpoN6x5/WZU7VBTK376F7TidMNskKOMoA== +"@loaders.gl/gis@3.4.14", "@loaders.gl/gis@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/gis/-/gis-3.4.14.tgz#a9b3eed45e2a4465a754e3404061222c51b1334a" + integrity sha512-5cmhIwioPpSkfNzFRM3PbFDecjpYIhtEOFbryu3rE37npKHLTD2tF4ocQxUPB+QVED6GLwWBdzJIs64UWGrqjw== dependencies: - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/schema" "3.4.6" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/schema" "3.4.14" "@mapbox/vector-tile" "^1.3.1" "@math.gl/polygon" "^3.5.1" pbf "^3.2.1" -"@loaders.gl/gltf@3.4.6", "@loaders.gl/gltf@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/gltf/-/gltf-3.4.6.tgz#db5bc92c1e2049776d8afaec562c474c014a1479" - integrity sha512-BB2Hkz8dTr6IbgccGb6y9QYdXyqbi5L8qIlEldA3P7f36y9EN1JVTBUxyF8hHqPt3YKgJ0RKX9F2YLRrhWT1gw== +"@loaders.gl/gltf@3.4.14", "@loaders.gl/gltf@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/gltf/-/gltf-3.4.14.tgz#8677d6793cf0827dee52711e55fbdc445e9f9bb8" + integrity sha512-jv+B5S/taiwzXAOu5D9nk1jjU9+JCCr/6/nGguCE2Ya3IX7CI1Nlnp20eKKhW8ZCEokZavMNT0bNbiJ5ahEFjA== dependencies: - "@loaders.gl/draco" "3.4.6" - "@loaders.gl/images" "3.4.6" - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/textures" "3.4.6" + "@loaders.gl/draco" "3.4.14" + "@loaders.gl/images" "3.4.14" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/textures" "3.4.14" "@math.gl/core" "^3.5.1" -"@loaders.gl/images@3.4.6", "@loaders.gl/images@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/images/-/images-3.4.6.tgz#7affe0a5a6a68df4f3f36169b7af54151c371e41" - integrity sha512-zwM6lXATGxxIe27X1gPyqcgXb6ql9gPkoNlb5pWOrF1D8DrFFjTJSLV9p6WGrVKMZKeioJ2PK8ZnkeRiOYkveA== +"@loaders.gl/images@3.4.14", "@loaders.gl/images@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/images/-/images-3.4.14.tgz#d7a4950f11b48d028cf3719cf6498945f4a05c14" + integrity sha512-tL447hTWhOKBOB87SE4hvlC8OkbRT0mEaW1a/wIS9f4HnYDa/ycRLMV+nvdvYMZur4isNPam44oiRqi7GcILkg== dependencies: - "@loaders.gl/loader-utils" "3.4.6" + "@loaders.gl/loader-utils" "3.4.14" -"@loaders.gl/loader-utils@3.4.6", "@loaders.gl/loader-utils@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/loader-utils/-/loader-utils-3.4.6.tgz#207d3ee0fb9b5c4bbd615b9f57b34c4ad68ce307" - integrity sha512-AN56Tvomas7bOZlrMEDforJWwS6DuXXFT/MsxOR/2vvzhutLDxYSuG4dZ9g5ejqJkiboDLAL3aghXXWekyToaw== +"@loaders.gl/loader-utils@3.4.14", "@loaders.gl/loader-utils@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/loader-utils/-/loader-utils-3.4.14.tgz#d94decc279fd2304b8762c87d8d9626058d91f21" + integrity sha512-HCTY2/F83RLbZWcTvWLVJ1vke3dl6Bye20HU1AqkA37J2vzHwOZ8kj6eee8eeSkIkf7VIFwjyhVJxe0flQE/Bw== dependencies: "@babel/runtime" "^7.3.1" - "@loaders.gl/worker-utils" "3.4.6" + "@loaders.gl/worker-utils" "3.4.14" "@probe.gl/stats" "^4.0.1" -"@loaders.gl/math@3.4.6": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/math/-/math-3.4.6.tgz#d37a80101811bb7b2eb3e7d2c7899d10667c3d6c" - integrity sha512-FC+BSp6NqMH372wkVS92yb+YIP2a26Mi1nEj8eiyRadxkQoyZ2bKH2kxoNX40yCo1xk/ZyX2v8wYq3ZNS+9fIg== +"@loaders.gl/math@3.4.14": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/math/-/math-3.4.14.tgz#c27993f0dbe5a88f3ffa07e5240ce27ea5e92392" + integrity sha512-OBEVX6Q5pMipbCAiZyX2+q1zRd0nw8M2dclpny05on8700OaKMwfs47wEUnbfCU3iyHad3sgsAxN3EIh+kuo9Q== dependencies: - "@loaders.gl/images" "3.4.6" - "@loaders.gl/loader-utils" "3.4.6" + "@loaders.gl/images" "3.4.14" + "@loaders.gl/loader-utils" "3.4.14" "@math.gl/core" "^3.5.1" -"@loaders.gl/mvt@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/mvt/-/mvt-3.4.6.tgz#bd006afdf13503a520645f8d01b0ab61a0052eb1" - integrity sha512-fzZjuY5mS7p3IBu5MSyiHAvRUz2MEX1w0tRW/AlNiBn3SaEKqt8rei7Fir7QTNxK5qEBoTUDr5jOg1wH9SCC7Q== +"@loaders.gl/mvt@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/mvt/-/mvt-3.4.14.tgz#fee16db321301e94b329c6be9db9420db0be17c8" + integrity sha512-tozGmWvsJacjaLavjX4S/5yNDV9S4wJb7+vPG/nXWX2gTtgZ1mxcFQAtAJjokqpy37d1ZhLt+TXh0HrLoTmRgw== dependencies: - "@loaders.gl/gis" "3.4.6" - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/schema" "3.4.6" + "@loaders.gl/gis" "3.4.14" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/schema" "3.4.14" "@math.gl/polygon" "^3.5.1" pbf "^3.2.1" -"@loaders.gl/schema@3.4.6", "@loaders.gl/schema@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/schema/-/schema-3.4.6.tgz#463a905e8156d62c9723a5708e911b6831ccc4eb" - integrity sha512-uvToDknGCEL0TIZY1Rn76lQ0m22kUtVxE0HbgfgzwkT7dlXeT92F5yD4VVVL8qTX4oqh2xUySPQIaiAqdkGCvg== +"@loaders.gl/schema@3.4.14", "@loaders.gl/schema@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/schema/-/schema-3.4.14.tgz#6f145065a2abaf402aa419cfa25ec7f1fdeed487" + integrity sha512-r6BEDfUvbvzgUnh/MtkR5RzrkIwo1x1jtPFRTSJVsIZO7arXXlu3blffuv5ppEkKpNZ1Xzd9WtHp/JIkuctsmw== dependencies: "@types/geojson" "^7946.0.7" -"@loaders.gl/terrain@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/terrain/-/terrain-3.4.6.tgz#c1bcbcbfe29c37c8d2807ea686cd194e6cada2ad" - integrity sha512-Ki/t1wtroBqvPf1XxKdVKWjZ8BwEw4mxIHbWg+vRauxU7T3m85Bfp1KMF49E8jAa5HGikenD2Qumf5jC66GNSQ== +"@loaders.gl/terrain@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/terrain/-/terrain-3.4.14.tgz#8cd469b356b94c0d31ffc987c9166ccd33fe1d86" + integrity sha512-vhchEVkPaWXnqd2ofujG2AEnBsk4hEw6LWSaFY7E3VMzNhI9l2EHvyU3+Hs03jYbXM4oLlQPGqd/T7x+5IMtig== dependencies: "@babel/runtime" "^7.3.1" - "@loaders.gl/images" "3.4.6" - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/schema" "3.4.6" + "@loaders.gl/images" "3.4.14" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/schema" "3.4.14" "@mapbox/martini" "^0.2.0" -"@loaders.gl/textures@3.4.6": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/textures/-/textures-3.4.6.tgz#1f3603f3afc29cc7a827b0d127e391ae1563b02c" - integrity sha512-eeYFD0kWwkKwUWQ/sNHMP0wDiG2XsTWPY4rWV9RZRY955p+7q11Xoksqc3M4g8/DJ5+gYnBHyJMM3Tg4cG5Uhg== +"@loaders.gl/textures@3.4.14": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/textures/-/textures-3.4.14.tgz#a229ff70592b7a90af96fdd361cda48b9c95bec9" + integrity sha512-iKDHL2ZlOUud4/e3g0p0SyvkukznopYy6La3O6I9vDfKp8peuKMRRcTfFfd/zH0OqQC0hIhCXNz46vRLu7h6ng== dependencies: - "@loaders.gl/images" "3.4.6" - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/schema" "3.4.6" - "@loaders.gl/worker-utils" "3.4.6" + "@loaders.gl/images" "3.4.14" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/schema" "3.4.14" + "@loaders.gl/worker-utils" "3.4.14" ktx-parse "^0.0.4" texture-compressor "^1.0.2" -"@loaders.gl/tiles@3.4.6", "@loaders.gl/tiles@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/tiles/-/tiles-3.4.6.tgz#fb3b81b6add493150b3539cd5f14436c6dfaf5e6" - integrity sha512-Tl9H9Gt8p8ZOJGdWjkdAHXjyr3UAArimC/DRRHbP70Zpipgo/qgSfYPbkGih20dvuoj4uuNe9pwSrk9ctmpxMg== +"@loaders.gl/tiles@3.4.14", "@loaders.gl/tiles@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/tiles/-/tiles-3.4.14.tgz#8513426ae4965a9c6200f9d61902ce7af4f276cf" + integrity sha512-an3scxl65r74LW4WoIGgluBmQpMY9eb381y9mZmREphTP6bWEj96fL/tiR+G6TiE6HJqTv8O3PH6xwI9OQmEJg== dependencies: - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/math" "3.4.6" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/math" "3.4.14" "@math.gl/core" "^3.5.1" "@math.gl/culling" "^3.5.1" "@math.gl/geospatial" "^3.5.1" "@math.gl/web-mercator" "^3.5.1" "@probe.gl/stats" "^4.0.1" -"@loaders.gl/wms@^3.4.2": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/wms/-/wms-3.4.6.tgz#9f7ff30947e0867511381a84166d61e07dc91a81" - integrity sha512-LkVaIM36Nqp8rTmeSVnHxHXdq8NRjnoXC0bSoDW3WzClYIcQmMf43zHzi2zQf0Y1O/DH+6oLo9ueOtGKc8VfLA== +"@loaders.gl/wms@^3.4.13": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/wms/-/wms-3.4.14.tgz#1bfde56078409fb41a749c1ef9e22a870fa59e3e" + integrity sha512-D1pObPSUj885zGPyHIb7GtcwpHQNk0T8nK/4EHb0SHLe0y1b4qwqSOswdS9geXT9Q61hyhl/L0zqyTgwjiMStg== dependencies: "@babel/runtime" "^7.3.1" - "@loaders.gl/images" "3.4.6" - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/schema" "3.4.6" - "@loaders.gl/xml" "3.4.6" + "@loaders.gl/images" "3.4.14" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/schema" "3.4.14" + "@loaders.gl/xml" "3.4.14" "@turf/rewind" "^5.1.5" deep-strict-equal "^0.2.0" lerc "^4.0.1" -"@loaders.gl/worker-utils@3.4.6": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/worker-utils/-/worker-utils-3.4.6.tgz#b340162e8e7adbd6444dcd1b0da02d059cdc7ba1" - integrity sha512-1Ns2d5HbJ22u9PDfEqoDWhg2F3zyYZUCQBmfmSW9Yuxblt2M0pRyB01VvAhPCnLovldvesHu+o16FsgkqieybQ== +"@loaders.gl/worker-utils@3.4.14": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/worker-utils/-/worker-utils-3.4.14.tgz#5391a416a3d60e03b9edcedb285af44312d40d2e" + integrity sha512-PUSwxoAYbskisXd0KfYEQ902b0igBA2UAWdP6PzPvY+tJmobfh74dTNwrrBQ1rGXQxxmGx6zc6/ksX6mlIzIrg== dependencies: "@babel/runtime" "^7.3.1" -"@loaders.gl/xml@3.4.6": - version "3.4.6" - resolved "https://registry.yarnpkg.com/@loaders.gl/xml/-/xml-3.4.6.tgz#38fcb16cf832da3a7874b8239a0413f06229d528" - integrity sha512-kB3R2Wz9d/UEDka5Fhjv/MoIXK2dB57J7nQIXmFpdCVJKPUIm9aZXyqODcCMNoufSR2PI5uqxJ12a14vV3WZsQ== +"@loaders.gl/xml@3.4.14": + version "3.4.14" + resolved "https://registry.yarnpkg.com/@loaders.gl/xml/-/xml-3.4.14.tgz#8bfdbed0440cabdc891f152c80b05128cb019d24" + integrity sha512-SNMGOHz4p8Cw+M6kxXhFEjXdNddJPOZY1rzNmRq7NYdGQlQYYeJdqV5HWzHx9BkoQYyrDXkrweGN0mY9QxCfeA== dependencies: "@babel/runtime" "^7.3.1" - "@loaders.gl/loader-utils" "3.4.6" - "@loaders.gl/schema" "3.4.6" - fast-xml-parser "^4.1.3" + "@loaders.gl/loader-utils" "3.4.14" + "@loaders.gl/schema" "3.4.14" + fast-xml-parser "^4.2.5" -"@luma.gl/constants@8.5.20", "@luma.gl/constants@^8.5.20": - version "8.5.20" - resolved "https://registry.yarnpkg.com/@luma.gl/constants/-/constants-8.5.20.tgz#91de116f68110fb28a000b59747d34d54bc06ab2" - integrity sha512-5yG+ybkUZ4j6kLPWMZjN4Hun2yLB0MyEpNCRKAUN9/yS9UIWA7unyVxjSf2vnE7k/7dywtxlbXegASNFgNVGxw== +"@luma.gl/constants@8.5.21", "@luma.gl/constants@^8.5.21": + version "8.5.21" + resolved "https://registry.yarnpkg.com/@luma.gl/constants/-/constants-8.5.21.tgz#81825e9bd9bdf4a9449bcface8b504389f65f634" + integrity sha512-aJxayGxTT+IRd1vfpcgD/cKSCiVJjBNiuiChS96VulrmCvkzUOLvYXr42y5qKB4RyR7vOIda5uQprNzoHrhQAA== -"@luma.gl/core@^8.5.20": - version "8.5.20" - resolved "https://registry.yarnpkg.com/@luma.gl/core/-/core-8.5.20.tgz#8b6cea7b5d7230e8b2848c310fc092af2c652571" - integrity sha512-xJr96G6vhYcznYHC84fbeOG3fgNM4lFwj9bd0VPcg/Kfe8otUeN1Hl0AKHCCtNn48PiMSg3LKbaiRfNUMhaffQ== +"@luma.gl/core@^8.5.21": + version "8.5.21" + resolved "https://registry.yarnpkg.com/@luma.gl/core/-/core-8.5.21.tgz#dc630f1ea18900287ac8da60724d0d8f783b31b1" + integrity sha512-11jQJQEMoR/IN2oIsd4zFxiQJk6FE+xgVIMUcsCTBuzafTtQZ8Po9df8mt+MVewpDyBlTVs6g8nxHRH4np1ukA== dependencies: "@babel/runtime" "^7.0.0" - "@luma.gl/constants" "8.5.20" - "@luma.gl/engine" "8.5.20" - "@luma.gl/gltools" "8.5.20" - "@luma.gl/shadertools" "8.5.20" - "@luma.gl/webgl" "8.5.20" + "@luma.gl/constants" "8.5.21" + "@luma.gl/engine" "8.5.21" + "@luma.gl/gltools" "8.5.21" + "@luma.gl/shadertools" "8.5.21" + "@luma.gl/webgl" "8.5.21" -"@luma.gl/engine@8.5.20": - version "8.5.20" - resolved "https://registry.yarnpkg.com/@luma.gl/engine/-/engine-8.5.20.tgz#5ef3fa7b69a3bcfeda5991ed9f1d75445cbfbf13" - integrity sha512-+0ryJ/4gL1pWaEgZimY21jUPt1LYiO6Cqte8TNUprCfAHoAStsuzD7jwgEqnM6jJOUEdIxQ3w0z3Dzw/0KIE+w== +"@luma.gl/engine@8.5.21": + version "8.5.21" + resolved "https://registry.yarnpkg.com/@luma.gl/engine/-/engine-8.5.21.tgz#bc8e55371fb95e33fec195c08abf35598c55da42" + integrity sha512-IG3WQSKXFNUEs8QG7ZjHtGiOtsakUu+BAxtJ6997A6/F06yynZ44tPe5NU70jG9Yfu3kV0LykPZg7hO3vXZDiA== dependencies: "@babel/runtime" "^7.0.0" - "@luma.gl/constants" "8.5.20" - "@luma.gl/gltools" "8.5.20" - "@luma.gl/shadertools" "8.5.20" - "@luma.gl/webgl" "8.5.20" + "@luma.gl/constants" "8.5.21" + "@luma.gl/gltools" "8.5.21" + "@luma.gl/shadertools" "8.5.21" + "@luma.gl/webgl" "8.5.21" "@math.gl/core" "^3.5.0" "@probe.gl/env" "^3.5.0" "@probe.gl/stats" "^3.5.0" "@types/offscreencanvas" "^2019.7.0" -"@luma.gl/experimental@^8.5.20": - version "8.5.20" - resolved "https://registry.yarnpkg.com/@luma.gl/experimental/-/experimental-8.5.20.tgz#1bb4c458eaadc81f357aead7b7d3067f7c665c94" - integrity sha512-V1Jp68rYMPtwMdf+50r3NSYsGV3srjwZ+lcK2ew4DshjedDbYwLqTGMWcOyBhY3K3aCl2LH3Fhn0hAY+3NTLGA== +"@luma.gl/experimental@^8.5.21": + version "8.5.21" + resolved "https://registry.yarnpkg.com/@luma.gl/experimental/-/experimental-8.5.21.tgz#1ab5ad084202ae3c05e16b7e4b430c791f86a50d" + integrity sha512-uFKPChGofyihOKxtqJy78QCQCDFnuMTK4QHrUX/qiTnvFSO8BgtTUevKvWGN9lBvq+uDD0lSieeF9yBzhQfAzw== dependencies: - "@luma.gl/constants" "8.5.20" + "@luma.gl/constants" "8.5.21" "@math.gl/core" "^3.5.0" earcut "^2.0.6" -"@luma.gl/gltools@8.5.20": - version "8.5.20" - resolved "https://registry.yarnpkg.com/@luma.gl/gltools/-/gltools-8.5.20.tgz#eb35b44b185a83e2e46f1a4f61b51661b95aaf32" - integrity sha512-5pP6ph9FSX5gHiVWQM1DmYRUnriklzKUG9yaqlQsKEqCFsOcKB0EfK3MfBVXIfsOdP/1bJZ9Dlz/zV19soWVhg== +"@luma.gl/gltools@8.5.21": + version "8.5.21" + resolved "https://registry.yarnpkg.com/@luma.gl/gltools/-/gltools-8.5.21.tgz#1077305a30712f20cd904c2e4cbe5b9263b7d138" + integrity sha512-6qZ0LaT2Mxa4AJT5F44TFoaziokYiHUwO45vnM/NYUOIu9xevcmS6VtToawytMEACGL6PDeDyVqP3Y80SDzq5g== dependencies: "@babel/runtime" "^7.0.0" - "@luma.gl/constants" "8.5.20" + "@luma.gl/constants" "8.5.21" "@probe.gl/env" "^3.5.0" "@probe.gl/log" "^3.5.0" "@types/offscreencanvas" "^2019.7.0" -"@luma.gl/shadertools@8.5.20", "@luma.gl/shadertools@^8.5.20": - version "8.5.20" - resolved "https://registry.yarnpkg.com/@luma.gl/shadertools/-/shadertools-8.5.20.tgz#ee09f3880acdd1599619dead3ca5fbe4116bb8b6" - integrity sha512-q1lrCZy1ncIFb4mMjsYgISLzNP6eMnhLUY+Oltj/qjAMcPEssCeHN2+XGfP/CVtU+O7sC+5JY2bQGaTs6HQ/Qw== +"@luma.gl/shadertools@8.5.21", "@luma.gl/shadertools@^8.5.21": + version "8.5.21" + resolved "https://registry.yarnpkg.com/@luma.gl/shadertools/-/shadertools-8.5.21.tgz#9a8e087e39e34f055f9fdda9fac527c04f637b4e" + integrity sha512-WQah7yFDJ8cNCLPYpIm3r0wSlXLvjoA279fcknmATvvkW3/i8PcCJ/nYEBJO3hHEwwMQxD16+YZu/uwGiifLMg== dependencies: "@babel/runtime" "^7.0.0" "@math.gl/core" "^3.5.0" -"@luma.gl/webgl@8.5.20", "@luma.gl/webgl@^8.5.20": - version "8.5.20" - resolved "https://registry.yarnpkg.com/@luma.gl/webgl/-/webgl-8.5.20.tgz#7eef0d695a2a62d0bbe57227c239930a4acf179f" - integrity sha512-p/kt9KztywH4l+09XHoZ4cPFOoE7xlZXIBMT8rxRVgfe1w0lvi7QYh4tOG7gk+iixQ34EyDQacoHCsabdpmqQg== +"@luma.gl/webgl@8.5.21", "@luma.gl/webgl@^8.5.21": + version "8.5.21" + resolved "https://registry.yarnpkg.com/@luma.gl/webgl/-/webgl-8.5.21.tgz#fe67bf19a41231840ca677ae702969c7a9a5d7a0" + integrity sha512-ZVLO4W5UuaOlzZIwmFWhnmZ1gYoU97a+heMqxLrSSmCUAsSu3ZETUex9gOmzdM1WWxcdWaa3M68rvKCNEgwz0Q== dependencies: "@babel/runtime" "^7.0.0" - "@luma.gl/constants" "8.5.20" - "@luma.gl/gltools" "8.5.20" + "@luma.gl/constants" "8.5.21" + "@luma.gl/gltools" "8.5.21" "@probe.gl/env" "^3.5.0" "@probe.gl/stats" "^3.5.0" -"@mapbox/geojson-rewind@^0.5.1": - version "0.5.1" - resolved "https://registry.npmjs.org/@mapbox/geojson-rewind/-/geojson-rewind-0.5.1.tgz" - integrity sha512-eL7fMmfTBKjrb+VFHXCGv9Ot0zc3C0U+CwXo1IrP+EPwDczLoXv34Tgq3y+2mPSFNVUXgU42ILWJTC7145KPTA== +"@mapbox/geojson-rewind@^0.5.2": + version "0.5.2" + resolved "https://registry.yarnpkg.com/@mapbox/geojson-rewind/-/geojson-rewind-0.5.2.tgz#591a5d71a9cd1da1a0bf3420b3bea31b0fc7946a" + integrity sha512-tJaT+RbYGJYStt7wI3cq4Nl4SXxG8W7JDG5DMJu97V25RnbNg3QtQtf+KD+VLjNpWKYsRvXDNmNrBgEETr1ifA== dependencies: get-stream "^6.0.1" - minimist "^1.2.5" + minimist "^1.2.6" -"@mapbox/jsonlint-lines-primitives@^2.0.2": +"@mapbox/jsonlint-lines-primitives@^2.0.2", "@mapbox/jsonlint-lines-primitives@~2.0.2": version "2.0.2" resolved "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz" integrity sha1-zlblOfg1UrWNENZy6k1vya3HsjQ= "@mapbox/mapbox-gl-supported@^2.0.1": version "2.0.1" - resolved "https://registry.npmjs.org/@mapbox/mapbox-gl-supported/-/mapbox-gl-supported-2.0.1.tgz" + resolved "https://registry.yarnpkg.com/@mapbox/mapbox-gl-supported/-/mapbox-gl-supported-2.0.1.tgz#c15367178d8bfe4765e6b47b542fe821ce259c7b" integrity sha512-HP6XvfNIzfoMVfyGjBckjiAOQK9WfX0ywdLubuPMPv+Vqf5fj0uCbgBQYpiqcWZT6cbyyRnTSXDheT1ugvF6UQ== "@mapbox/martini@^0.2.0": @@ -2680,12 +2689,7 @@ dependencies: tilebelt "^1.0.1" -"@mapbox/tiny-sdf@^2.0.4": - version "2.0.5" - resolved "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-2.0.5.tgz" - integrity sha512-OhXt2lS//WpLdkqrzo/KwB7SRD8AiNTFFzuo9n14IBupzIMa67yGItcK7I2W9D8Ghpa4T04Sw9FWsKCJG50Bxw== - -"@mapbox/tiny-sdf@^2.0.5": +"@mapbox/tiny-sdf@^2.0.5", "@mapbox/tiny-sdf@^2.0.6": version "2.0.6" resolved "https://registry.yarnpkg.com/@mapbox/tiny-sdf/-/tiny-sdf-2.0.6.tgz#9a1d33e5018093e88f6a4df2343e886056287282" integrity sha512-qMqa27TLw+ZQz5Jk+RcwZGH7BQf5G/TrutJhspsca/3SHwmgKQ1iq+d3Jxz5oysPVYTGP6aXxCo5Lk9Er6YBAA== @@ -2707,6 +2711,18 @@ resolved "https://registry.npmjs.org/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz" integrity sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q== +"@maplibre/maplibre-gl-style-spec@^19.3.3": + version "19.3.3" + resolved "https://registry.yarnpkg.com/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-19.3.3.tgz#a106248bd2e25e77c963a362aeaf630e00f924e9" + integrity sha512-cOZZOVhDSulgK0meTsTkmNXb1ahVvmTmWmfx9gRBwc6hq98wS9JP35ESIoNq3xqEan+UN+gn8187Z6E4NKhLsw== + dependencies: + "@mapbox/jsonlint-lines-primitives" "~2.0.2" + "@mapbox/unitbezier" "^0.0.1" + json-stringify-pretty-compact "^3.0.0" + minimist "^1.2.8" + rw "^1.3.3" + sort-object "^3.0.3" + "@math.gl/core@3.5.7", "@math.gl/core@^3.5.0", "@math.gl/core@^3.5.1": version "3.5.7" resolved "https://registry.npmjs.org/@math.gl/core/-/core-3.5.7.tgz" @@ -4675,6 +4691,11 @@ resolved "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.7.tgz" integrity sha512-wE2v81i4C4Ol09RtsWFAqg3BUitWbHSpSlIo+bNdsCJijO9sjme+zm+73ZMCa/qMC8UEERxzGbvmr1cffo2SiQ== +"@types/geojson@^7946.0.13": + version "7946.0.14" + resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.14.tgz#319b63ad6df705ee2a65a73ef042c8271e696613" + integrity sha512-WCfD5Ht3ZesJUsONdhvm84dmzWOiOzOAqOncN0++w0lBw1o8OuDNJF2McvvCef/yBqb/HYRahp1BYtODFQ8bRg== + "@types/geojson@^7946.0.7": version "7946.0.8" resolved "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.8.tgz" @@ -4819,6 +4840,20 @@ dependencies: "@types/geojson" "*" +"@types/mapbox__point-geometry@*", "@types/mapbox__point-geometry@^0.1.4": + version "0.1.4" + resolved "https://registry.yarnpkg.com/@types/mapbox__point-geometry/-/mapbox__point-geometry-0.1.4.tgz#0ef017b75eedce02ff6243b4189210e2e6d5e56d" + integrity sha512-mUWlSxAmYLfwnRBmgYV86tgYmMIICX4kza8YnE/eIlywGe2XoOxlpVnXWwir92xRLjwyarqwpu2EJKD2pk0IUA== + +"@types/mapbox__vector-tile@^1.3.4": + version "1.3.4" + resolved "https://registry.yarnpkg.com/@types/mapbox__vector-tile/-/mapbox__vector-tile-1.3.4.tgz#ad757441ef1d34628d9e098afd9c91423c1f8734" + integrity sha512-bpd8dRn9pr6xKvuEBQup8pwQfD4VUyqO/2deGjfpe6AwC8YRlyEipvefyRJUSiCJTZuCb8Pl1ciVV5ekqJ96Bg== + dependencies: + "@types/geojson" "*" + "@types/mapbox__point-geometry" "*" + "@types/pbf" "*" + "@types/mdast@^3.0.0": version "3.0.3" resolved "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.3.tgz" @@ -4891,6 +4926,11 @@ resolved "https://registry.npmjs.org/@types/parse5/-/parse5-5.0.3.tgz" integrity sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw== +"@types/pbf@*", "@types/pbf@^3.0.5": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@types/pbf/-/pbf-3.0.5.tgz#a9495a58d8c75be4ffe9a0bd749a307715c07404" + integrity sha512-j3pOPiEcWZ34R6a6mN07mUkM4o4Lwf6hPNt8eilOeZhTFbxFXmKhvXl9Y28jotFPaI1bpPDJsbCprUoNke6OrA== + "@types/pg@^8.6.0": version "8.6.0" resolved "https://registry.npmjs.org/@types/pg/-/pg-8.6.0.tgz" @@ -5084,6 +5124,13 @@ resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz" integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== +"@types/supercluster@^7.1.3": + version "7.1.3" + resolved "https://registry.yarnpkg.com/@types/supercluster/-/supercluster-7.1.3.tgz#1a1bc2401b09174d9c9e44124931ec7874a72b27" + integrity sha512-Z0pOY34GDFl3Q6hUFYf3HkTwKEE02e7QgtJppBt+beEAxnyOpJua+voGFvxINBHa06GwLFFym7gRPY2SiKIfIA== + dependencies: + "@types/geojson" "*" + "@types/topojson-client@^3.0.0": version "3.1.0" resolved "https://registry.npmjs.org/@types/topojson-client/-/topojson-client-3.1.0.tgz" @@ -5816,6 +5863,11 @@ aria-query@^5.1.3: dependencies: dequal "^2.0.3" +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + integrity sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q== + array-buffer-byte-length@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" @@ -5912,6 +5964,11 @@ asn1.js@^5.2.0: minimalistic-assert "^1.0.0" safer-buffer "^2.1.0" +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== + ast-module-types@^2.7.1: version "2.7.1" resolved "https://registry.yarnpkg.com/ast-module-types/-/ast-module-types-2.7.1.tgz#3f7989ef8dfa1fdb82dfe0ab02bdfc7c77a57dd3" @@ -6461,6 +6518,21 @@ bytes@3.1.0: resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== +bytewise-core@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/bytewise-core/-/bytewise-core-1.2.3.tgz#3fb410c7e91558eb1ab22a82834577aa6bd61d42" + integrity sha512-nZD//kc78OOxeYtRlVk8/zXqTB4gf/nlguL1ggWA8FuchMyOxcyHR4QPQZMUmA7czC+YnaBrPUCubqAWe50DaA== + dependencies: + typewise-core "^1.2" + +bytewise@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/bytewise/-/bytewise-1.1.0.tgz#1d13cbff717ae7158094aa881b35d081b387253e" + integrity sha512-rHuuseJ9iQ0na6UDhnrRVDh8YnWVlU6xM3VH6q/+yHDeUH2zIhUzP+2/h3LIrhLDBtTqzWpE3p3tP/boefskKQ== + dependencies: + bytewise-core "^1.2.2" + typewise "^1.0.3" + cacheable-request@^6.0.0: version "6.1.0" resolved "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz" @@ -7309,11 +7381,6 @@ css-what@^3.2.1: resolved "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz" integrity sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ== -csscolorparser@~1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/csscolorparser/-/csscolorparser-1.0.3.tgz" - integrity sha1-s085HupNqPPpgjHizNjfnAQfFxs= - cssfilter@0.0.10: version "0.0.10" resolved "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz" @@ -8236,11 +8303,6 @@ earcut@^2.0.6: resolved "https://registry.npmjs.org/earcut/-/earcut-2.2.2.tgz" integrity sha512-eZoZPPJcUHnfRZ0PjLvx2qBordSiO8ofC3vt+qACLM95u+4DovnbYNpQtJh0DNsWj8RnxrQytD4WA8gj5cRIaQ== -earcut@^2.2.3: - version "2.2.3" - resolved "https://registry.npmjs.org/earcut/-/earcut-2.2.3.tgz" - integrity sha512-iRDI1QeCQIhMCZk48DRDMVgQSSBDmbzzNhnxIo+pwx3swkfjMh6vh0nWLq1NdvGHLKH6wIrAM3vQWeTj6qeoug== - earcut@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/earcut/-/earcut-2.2.4.tgz#6d02fd4d68160c114825d06890a92ecaae60343a" @@ -8835,6 +8897,21 @@ expect@^27.3.0: jest-message-util "^27.3.0" jest-regex-util "^27.0.6" +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + extend@^3.0.0: version "3.0.2" resolved "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz" @@ -8927,10 +9004,10 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= -fast-xml-parser@^4.1.3: - version "4.2.5" - resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz#a6747a09296a6cb34f2ae634019bf1738f3b421f" - integrity sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g== +fast-xml-parser@^4.2.5: + version "4.3.4" + resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.3.4.tgz#385cc256ad7bbc57b91515a38a22502a9e1fca0d" + integrity sha512-utnwm92SyozgA3hhH2I8qldf2lBqm6qHOICawRNRFu1qMe3+oqr+GcXjGqTmXTMGE5T4eC03kr/rlh5C1IRdZA== dependencies: strnum "^1.0.5" @@ -9356,6 +9433,11 @@ get-symbol-description@^1.0.0: call-bind "^1.0.2" get-intrinsic "^1.1.1" +get-value@^2.0.2, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== + github-slugger@^1.1.3: version "1.3.0" resolved "https://registry.npmjs.org/github-slugger/-/github-slugger-1.3.0.tgz" @@ -9465,6 +9547,15 @@ global-agent@^2.1.12: semver "^7.3.2" serialize-error "^7.0.1" +global-prefix@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" + integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== + dependencies: + ini "^1.3.5" + kind-of "^6.0.2" + which "^1.3.1" + globals@^11.1.0: version "11.12.0" resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" @@ -10083,7 +10174,7 @@ inherits@2, inherits@2.0.4, inherits@^2.0.0, inherits@^2.0.1, inherits@^2.0.3, i resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -ini@~1.3.0: +ini@^1.3.5, ini@~1.3.0: version "1.3.8" resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== @@ -10326,6 +10417,18 @@ is-error@^2.2.0: resolved "https://registry.yarnpkg.com/is-error/-/is-error-2.2.2.tgz#c10ade187b3c93510c5470a5567833ee25649843" integrity sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg== +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" + is-extglob@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz" @@ -10479,6 +10582,13 @@ is-plain-obj@^2.0.0: resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz" integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== +is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + is-potential-custom-element-name@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz" @@ -10695,6 +10805,11 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== + isomorphic-fetch@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz" @@ -11315,6 +11430,11 @@ json-stable-stringify@^1.0.1: dependencies: jsonify "~0.0.0" +json-stringify-pretty-compact@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/json-stringify-pretty-compact/-/json-stringify-pretty-compact-3.0.0.tgz#f71ef9d82ef16483a407869556588e91b681d9ab" + integrity sha512-Rc2suX5meI0S3bfdZuA7JMFBGkJ875ApfVyq2WHELjBiiG22My/l7/8zPpH/CfFVQHuVLd8NLR0nv6vi0BYYKA== + json-stringify-safe@^5.0.1: version "5.0.1" resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" @@ -11509,10 +11629,10 @@ jws@^3.2.2: jwa "^1.4.1" safe-buffer "^5.0.1" -kdbush@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/kdbush/-/kdbush-3.0.0.tgz" - integrity sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew== +kdbush@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/kdbush/-/kdbush-4.0.2.tgz#2f7b7246328b4657dd122b6c7f025fbc2c868e39" + integrity sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA== keyv@^3.0.0: version "3.1.0" @@ -11521,7 +11641,7 @@ keyv@^3.0.0: dependencies: json-buffer "3.0.0" -kind-of@^6.0.3: +kind-of@^6.0.2, kind-of@^6.0.3: version "6.0.3" resolved "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== @@ -12106,28 +12226,34 @@ map-stream@~0.1.0: resolved "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz" integrity sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ= -maplibre-gl@^2.1.6: - version "2.1.6" - resolved "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-2.1.6.tgz" - integrity sha512-UHdw4YeCkIyfG7vMdNK6e/sDNPB7jjUN5MUytKE1DFQB7sKM9V19ar1GUyn0uYRvQwJ5iC01fWhH3r/5bbHlKQ== +maplibre-gl@^3.6.2: + version "3.6.2" + resolved "https://registry.yarnpkg.com/maplibre-gl/-/maplibre-gl-3.6.2.tgz#abc2f34bddecabef8c20028eff06d62e36d75ccc" + integrity sha512-krg2KFIdOpLPngONDhP6ixCoWl5kbdMINP0moMSJFVX7wX1Clm2M9hlNKXS8vBGlVWwR5R3ZfI6IPrYz7c+aCQ== dependencies: - "@mapbox/geojson-rewind" "^0.5.1" + "@mapbox/geojson-rewind" "^0.5.2" "@mapbox/jsonlint-lines-primitives" "^2.0.2" - "@mapbox/mapbox-gl-supported" "^2.0.1" "@mapbox/point-geometry" "^0.1.0" - "@mapbox/tiny-sdf" "^2.0.4" + "@mapbox/tiny-sdf" "^2.0.6" "@mapbox/unitbezier" "^0.0.1" "@mapbox/vector-tile" "^1.3.1" "@mapbox/whoots-js" "^3.1.0" - csscolorparser "~1.0.3" - earcut "^2.2.3" + "@maplibre/maplibre-gl-style-spec" "^19.3.3" + "@types/geojson" "^7946.0.13" + "@types/mapbox__point-geometry" "^0.1.4" + "@types/mapbox__vector-tile" "^1.3.4" + "@types/pbf" "^3.0.5" + "@types/supercluster" "^7.1.3" + earcut "^2.2.4" geojson-vt "^3.2.1" gl-matrix "^3.4.3" + global-prefix "^3.0.0" + kdbush "^4.0.2" murmurhash-js "^1.0.0" pbf "^3.2.1" - potpack "^1.0.2" + potpack "^2.0.0" quickselect "^2.0.0" - supercluster "^7.1.4" + supercluster "^8.0.1" tinyqueue "^2.0.3" vt-pbf "^3.1.3" @@ -12398,7 +12524,7 @@ minimist@^1.2.0, minimist@^1.2.5, minimist@~1.2.0: resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== -minimist@^1.2.6: +minimist@^1.2.6, minimist@^1.2.8: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== @@ -13425,10 +13551,10 @@ postgres-migrations@^5.2.0: pg "^8.6.0" sql-template-strings "^2.2.2" -potpack@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/potpack/-/potpack-1.0.2.tgz" - integrity sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ== +potpack@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/potpack/-/potpack-2.0.0.tgz#61f4dd2dc4b3d5e996e3698c0ec9426d0e169104" + integrity sha512-Q+/tYsFU9r7xoOJ+y/ZTtdVQwTWfzjbiXBDMM/JKUux3+QPP02iUuIoeBQ+Ot6oEDlC+/PGjB/5A3K7KKb7hcw== preact-render-to-string@^5.1.19: version "5.2.3" @@ -14641,7 +14767,7 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -rw@1: +rw@1, rw@^1.3.3: version "1.3.3" resolved "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz" integrity sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q= @@ -14826,6 +14952,16 @@ set-immediate-shim@~1.0.1: resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" integrity sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E= +set-value@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" + integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + setimmediate@^1.0.5, setimmediate@~1.0.4: version "1.0.5" resolved "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz" @@ -14935,6 +15071,28 @@ socket.io-parser@*: component-emitter "~1.3.0" debug "~4.3.1" +sort-asc@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/sort-asc/-/sort-asc-0.2.0.tgz#00a49e947bc25d510bfde2cbb8dffda9f50eb2fc" + integrity sha512-umMGhjPeHAI6YjABoSTrFp2zaBtXBej1a0yKkuMUyjjqu6FJsTF+JYwCswWDg+zJfk/5npWUUbd33HH/WLzpaA== + +sort-desc@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/sort-desc/-/sort-desc-0.2.0.tgz#280c1bdafc6577887cedbad1ed2e41c037976646" + integrity sha512-NqZqyvL4VPW+RAxxXnB8gvE1kyikh8+pR+T+CXLksVRN9eiQqkQlPwqWYU0mF9Jm7UnctShlxLyAt1CaBOTL1w== + +sort-object@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/sort-object/-/sort-object-3.0.3.tgz#945727165f244af9dc596ad4c7605a8dee80c269" + integrity sha512-nK7WOY8jik6zaG9CRwZTaD5O7ETWDLZYMM12pqY8htll+7dYeqGfEUPcUBHOpSJg2vJOrvFIY2Dl5cX2ih1hAQ== + dependencies: + bytewise "^1.1.0" + get-value "^2.0.2" + is-extendable "^0.1.1" + sort-asc "^0.2.0" + sort-desc "^0.2.0" + union-value "^1.0.1" + source-map-js@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" @@ -15049,6 +15207,13 @@ spdx-license-ids@^3.0.0: resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.9.tgz" integrity sha512-Ki212dKK4ogX+xDo4CtOZBVIwhsKBEfsEEcwmJfLQzirgc2jIWdzg40Unxz/HzEUqM1WFzVlQSMF9kZZ2HboLQ== +split-string@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" + split2@^3.1.1: version "3.2.2" resolved "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz" @@ -15419,12 +15584,12 @@ subscriptions-transport-ws@^0.9.18: symbol-observable "^1.0.4" ws "^5.2.0 || ^6.0.0 || ^7.0.0" -supercluster@^7.1.4: - version "7.1.4" - resolved "https://registry.npmjs.org/supercluster/-/supercluster-7.1.4.tgz" - integrity sha512-GhKkRM1jMR6WUwGPw05fs66pOFWhf59lXq+Q3J3SxPvhNcmgOtLRV6aVQPMRsmXdpaeFJGivt+t7QXUPL3ff4g== +supercluster@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/supercluster/-/supercluster-8.0.1.tgz#9946ba123538e9e9ab15de472531f604e7372df5" + integrity sha512-IiOea5kJ9iqzD2t7QJq/cREyLHTtSmUT6gQsweojg9WH2sYJqZK9SswTu6jrscO6D1G5v5vYZ9ru/eq85lXeZQ== dependencies: - kdbush "^3.0.0" + kdbush "^4.0.2" superjson@^1.11.0: version "1.11.0" @@ -15968,6 +16133,18 @@ typescript@^4.0.0, typescript@^4.9.3, typescript@^4.9.5: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +typewise-core@^1.2, typewise-core@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/typewise-core/-/typewise-core-1.2.0.tgz#97eb91805c7f55d2f941748fa50d315d991ef195" + integrity sha512-2SCC/WLzj2SbUwzFOzqMCkz5amXLlxtJqDKTICqg30x+2DZxcfZN2MvQZmGfXWKNWaKK9pBPsvkcwv8bF/gxKg== + +typewise@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/typewise/-/typewise-1.0.3.tgz#1067936540af97937cc5dcf9922486e9fa284651" + integrity sha512-aXofE06xGhaQSPzt8hlTY+/YWQhm9P0jYUp1f2XtmW/3Bk0qzXcyFWAtPoo2uTGQj1ZwbDuSyuxicq+aDo8lCQ== + dependencies: + typewise-core "^1.2.0" + ua-parser-js@^0.7.18: version "0.7.28" resolved "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.28.tgz" @@ -16023,6 +16200,16 @@ unified@9.2.0: trough "^1.0.0" vfile "^4.0.0" +union-value@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" + integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^2.0.1" + uniq@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" @@ -16515,6 +16702,13 @@ which-typed-array@^1.1.9: has-tostringtag "^1.0.0" is-typed-array "^1.1.10" +which@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + which@^2.0.1, which@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"