UNPKG

protomaps-themes-base

Version:

Protomaps basemap themes for MapLibre GL JS

2,754 lines (2,753 loc) 250 kB
{ "version": 8, "sources": { "protomaps": { "type": "vector", "attribution": "<a href=\"https://github.com/protomaps/basemaps\">Protomaps</a> © <a href=\"https://openstreetmap.org\">OpenStreetMap</a>", "url": "https://example.com/tiles.json" } }, "layers": [ { "id": "background", "type": "background", "paint": { "background-color": "#cccccc" } }, { "id": "earth", "type": "fill", "filter": [ "==", "$type", "Polygon" ], "source": "protomaps", "source-layer": "earth", "paint": { "fill-color": "#e2dfda" } }, { "id": "landcover", "type": "fill", "source": "protomaps", "source-layer": "landcover", "paint": { "fill-color": [ "match", [ "get", "kind" ], "grassland", "rgba(210, 239, 207, 1)", "barren", "rgba(255, 243, 215, 1)", "urban_area", "rgba(230, 230, 230, 1)", "farmland", "rgba(216, 239, 210, 1)", "glacier", "rgba(255, 255, 255, 1)", "scrub", "rgba(234, 239, 210, 1)", "rgba(196, 231, 210, 1)" ], "fill-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 5, 1, 7, 0 ] } }, { "id": "landuse_park", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "in", "kind", "national_park", "park", "cemetery", "protected_area", "nature_reserve", "forest", "golf_course", "wood", "nature_reserve", "forest", "scrub", "grassland", "grass", "military", "naval_base", "airfield" ], "paint": { "fill-opacity": [ "interpolate", [ "linear" ], [ "zoom" ], 6, 0, 11, 1 ], "fill-color": [ "case", [ "in", [ "get", "kind" ], [ "literal", [ "national_park", "park", "cemetery", "protected_area", "nature_reserve", "forest", "golf_course" ] ] ], "#9cd3b4", [ "in", [ "get", "kind" ], [ "literal", [ "wood", "nature_reserve", "forest" ] ] ], "#a0d9a0", [ "in", [ "get", "kind" ], [ "literal", [ "scrub", "grassland", "grass" ] ] ], "#99d2bb", [ "in", [ "get", "kind" ], [ "literal", [ "glacier" ] ] ], "#e7e7e7", [ "in", [ "get", "kind" ], [ "literal", [ "sand" ] ] ], "#e2e0d7", [ "in", [ "get", "kind" ], [ "literal", [ "military", "naval_base", "airfield" ] ] ], "#c6dcdc", "#e2dfda" ] } }, { "id": "landuse_urban_green", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "in", "kind", "allotments", "village_green", "playground" ], "paint": { "fill-color": "#9cd3b4", "fill-opacity": 0.7 } }, { "id": "landuse_hospital", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "==", "kind", "hospital" ], "paint": { "fill-color": "#e4dad9" } }, { "id": "landuse_industrial", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "==", "kind", "industrial" ], "paint": { "fill-color": "#d1dde1" } }, { "id": "landuse_school", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "in", "kind", "school", "university", "college" ], "paint": { "fill-color": "#e4ded7" } }, { "id": "landuse_beach", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "in", "kind", "beach" ], "paint": { "fill-color": "#e8e4d0" } }, { "id": "landuse_zoo", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "in", "kind", "zoo" ], "paint": { "fill-color": "#c6dcdc" } }, { "id": "landuse_aerodrome", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "in", "kind", "aerodrome" ], "paint": { "fill-color": "#dadbdf" } }, { "id": "roads_runway", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "==", "kind_detail", "runway" ], "paint": { "line-color": "#e9e9ed", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 10, 0, 12, 4, 18, 30 ] } }, { "id": "roads_taxiway", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 13, "filter": [ "==", "kind_detail", "taxiway" ], "paint": { "line-color": "#e9e9ed", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 1, 15, 6 ] } }, { "id": "landuse_runway", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "any", [ "in", "kind", "runway", "taxiway" ] ], "paint": { "fill-color": "#e9e9ed" } }, { "id": "water", "type": "fill", "filter": [ "==", "$type", "Polygon" ], "source": "protomaps", "source-layer": "water", "paint": { "fill-color": "#80deea" } }, { "id": "water_stream", "type": "line", "source": "protomaps", "source-layer": "water", "minzoom": 14, "filter": [ "in", "kind", "stream" ], "paint": { "line-color": "#80deea", "line-width": 0.5 } }, { "id": "water_river", "type": "line", "source": "protomaps", "source-layer": "water", "minzoom": 9, "filter": [ "in", "kind", "river" ], "paint": { "line-color": "#80deea", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 9, 0, 9.5, 1, 18, 12 ] } }, { "id": "landuse_pedestrian", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "==", "kind", "pedestrian" ], "paint": { "fill-color": "#e3e0d4" } }, { "id": "landuse_pier", "type": "fill", "source": "protomaps", "source-layer": "landuse", "filter": [ "==", "kind", "pier" ], "paint": { "fill-color": "#e0e0e0" } }, { "id": "roads_tunnels_other_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "has", "is_tunnel" ], [ "in", "kind", "other", "path" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 14, 0, 20, 7 ] } }, { "id": "roads_tunnels_minor_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "has", "is_tunnel" ], [ "==", "kind", "minor_road" ] ], "paint": { "line-color": "#e0e0e0", "line-dasharray": [ 3, 2 ], "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 11, 0, 12.5, 0.5, 15, 2, 18, 11 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 12, 0, 12.5, 1 ] } }, { "id": "roads_tunnels_link_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "has", "is_tunnel" ], [ "has", "is_link" ] ], "paint": { "line-color": "#e0e0e0", "line-dasharray": [ 3, 2 ], "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 1, 18, 11 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 12, 0, 12.5, 1 ] } }, { "id": "roads_tunnels_major_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "major_road" ] ], "paint": { "line-color": "#e0e0e0", "line-dasharray": [ 3, 2 ], "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 7, 0, 7.5, 0.5, 18, 13 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 9, 0, 9.5, 1 ] } }, { "id": "roads_tunnels_highway_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "highway" ], [ "!has", "is_link" ] ], "paint": { "line-color": "#e0e0e0", "line-dasharray": [ 6, 0.5 ], "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 3, 0, 3.5, 0.5, 18, 15 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 7, 0, 7.5, 1, 20, 15 ] } }, { "id": "roads_tunnels_other", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "has", "is_tunnel" ], [ "in", "kind", "other", "path" ] ], "paint": { "line-color": "#d5d5d5", "line-dasharray": [ 4.5, 0.5 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 14, 0, 20, 7 ] } }, { "id": "roads_tunnels_minor", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "has", "is_tunnel" ], [ "==", "kind", "minor_road" ] ], "paint": { "line-color": "#d5d5d5", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 11, 0, 12.5, 0.5, 15, 2, 18, 11 ] } }, { "id": "roads_tunnels_link", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "has", "is_tunnel" ], [ "has", "is_link" ] ], "paint": { "line-color": "#d5d5d5", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 1, 18, 11 ] } }, { "id": "roads_tunnels_major", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "has", "is_tunnel" ], [ "==", "kind", "major_road" ] ], "paint": { "line-color": "#d5d5d5", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 6, 0, 12, 1.6, 15, 3, 18, 13 ] } }, { "id": "roads_tunnels_highway", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "has", "is_tunnel" ], [ "==", [ "get", "kind" ], "highway" ], [ "!", [ "has", "is_link" ] ] ], "paint": { "line-color": "#d5d5d5", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 3, 0, 6, 1.1, 12, 1.6, 15, 5, 18, 15 ] } }, { "id": "buildings", "type": "fill", "source": "protomaps", "source-layer": "buildings", "filter": [ "in", "kind", "building", "building_part" ], "paint": { "fill-color": "#cccccc", "fill-opacity": 0.5 } }, { "id": "roads_pier", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "==", "kind_detail", "pier" ], "paint": { "line-color": "#e0e0e0", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 12, 0, 12.5, 0.5, 20, 16 ] } }, { "id": "roads_minor_service_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 13, "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "minor_road" ], [ "==", "kind_detail", "service" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 18, 8 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 0.8 ] } }, { "id": "roads_minor_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "minor_road" ], [ "!=", "kind_detail", "service" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 11, 0, 12.5, 0.5, 15, 2, 18, 11 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 12, 0, 12.5, 1 ] } }, { "id": "roads_link_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 13, "filter": [ "has", "is_link" ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 1, 18, 11 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 1.5 ] } }, { "id": "roads_major_casing_late", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "major_road" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 6, 0, 12, 1.6, 15, 3, 18, 13 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 9, 0, 9.5, 1 ] } }, { "id": "roads_highway_casing_late", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "highway" ], [ "!has", "is_link" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 3, 0, 3.5, 0.5, 18, 15 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 7, 0, 7.5, 1, 20, 15 ] } }, { "id": "roads_other", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "in", "kind", "other", "path" ], [ "!=", "kind_detail", "pier" ] ], "paint": { "line-color": "#ebebeb", "line-dasharray": [ 3, 1 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 14, 0, 20, 7 ] } }, { "id": "roads_link", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "has", "is_link" ], "paint": { "line-color": "#ffffff", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 1, 18, 11 ] } }, { "id": "roads_minor_service", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "minor_road" ], [ "==", "kind_detail", "service" ] ], "paint": { "line-color": "#ebebeb", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 18, 8 ] } }, { "id": "roads_minor", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "minor_road" ], [ "!=", "kind_detail", "service" ] ], "paint": { "line-color": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 11, "#ebebeb", 16, "#ffffff" ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 11, 0, 12.5, 0.5, 15, 2, 18, 11 ] } }, { "id": "roads_major_casing_early", "type": "line", "source": "protomaps", "source-layer": "roads", "maxzoom": 12, "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "major_road" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 7, 0, 7.5, 0.5, 18, 13 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 9, 0, 9.5, 1 ] } }, { "id": "roads_major", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "major_road" ] ], "paint": { "line-color": "#ffffff", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 6, 0, 12, 1.6, 15, 3, 18, 13 ] } }, { "id": "roads_highway_casing_early", "type": "line", "source": "protomaps", "source-layer": "roads", "maxzoom": 12, "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "highway" ], [ "!has", "is_link" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 3, 0, 3.5, 0.5, 18, 15 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 7, 0, 7.5, 1 ] } }, { "id": "roads_highway", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "!has", "is_tunnel" ], [ "!has", "is_bridge" ], [ "==", "kind", "highway" ], [ "!has", "is_link" ] ], "paint": { "line-color": "#ffffff", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 3, 0, 6, 1.1, 12, 1.6, 15, 5, 18, 15 ] } }, { "id": "roads_rail", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "==", "kind", "rail" ], "paint": { "line-dasharray": [ 0.3, 0.75 ], "line-opacity": 0.5, "line-color": "#a7b1b3", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 3, 0, 6, 0.15, 18, 9 ] } }, { "id": "boundaries_country", "type": "line", "source": "protomaps", "source-layer": "boundaries", "filter": [ "<=", "kind_detail", 2 ], "paint": { "line-color": "#adadad", "line-width": 0.7, "line-dasharray": [ "step", [ "zoom" ], [ "literal", [ 2 ] ], 4, [ "literal", [ 2, 1 ] ] ] } }, { "id": "boundaries", "type": "line", "source": "protomaps", "source-layer": "boundaries", "filter": [ ">", "kind_detail", 2 ], "paint": { "line-color": "#adadad", "line-width": 0.4, "line-dasharray": [ "step", [ "zoom" ], [ "literal", [ 2 ] ], 4, [ "literal", [ 2, 1 ] ] ] } }, { "id": "roads_bridges_other_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "has", "is_bridge" ], [ "in", "kind", "other", "path" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 14, 0, 20, 7 ] } }, { "id": "roads_bridges_link_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "has", "is_bridge" ], [ "has", "is_link" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 1, 18, 11 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 12, 0, 12.5, 1.5 ] } }, { "id": "roads_bridges_minor_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "has", "is_bridge" ], [ "==", "kind", "minor_road" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 11, 0, 12.5, 0.5, 15, 2, 18, 11 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 0.8 ] } }, { "id": "roads_bridges_major_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "has", "is_bridge" ], [ "==", "kind", "major_road" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 7, 0, 7.5, 0.5, 18, 10 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 9, 0, 9.5, 1.5 ] } }, { "id": "roads_bridges_other", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "has", "is_bridge" ], [ "in", "kind", "other", "path" ] ], "paint": { "line-color": "#ebebeb", "line-dasharray": [ 2, 1 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 14, 0, 20, 7 ] } }, { "id": "roads_bridges_minor", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "has", "is_bridge" ], [ "==", "kind", "minor_road" ] ], "paint": { "line-color": "#ffffff", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 11, 0, 12.5, 0.5, 15, 2, 18, 11 ] } }, { "id": "roads_bridges_link", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "has", "is_bridge" ], [ "has", "is_link" ] ], "paint": { "line-color": "#ffffff", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 13, 0, 13.5, 1, 18, 11 ] } }, { "id": "roads_bridges_major", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "has", "is_bridge" ], [ "==", "kind", "major_road" ] ], "paint": { "line-color": "#f5f5f5", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 6, 0, 12, 1.6, 15, 3, 18, 13 ] } }, { "id": "roads_bridges_highway_casing", "type": "line", "source": "protomaps", "source-layer": "roads", "minzoom": 12, "filter": [ "all", [ "has", "is_bridge" ], [ "==", "kind", "highway" ], [ "!has", "is_link" ] ], "paint": { "line-color": "#e0e0e0", "line-gap-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 3, 0, 3.5, 0.5, 18, 15 ], "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 7, 0, 7.5, 1, 20, 15 ] } }, { "id": "roads_bridges_highway", "type": "line", "source": "protomaps", "source-layer": "roads", "filter": [ "all", [ "has", "is_bridge" ], [ "==", "kind", "highway" ], [ "!has", "is_link" ] ], "paint": { "line-color": "#ffffff", "line-width": [ "interpolate", [ "exponential", 1.6 ], [ "zoom" ], 3, 0, 6, 1.1, 12, 1.6, 15, 5, 18, 15 ] } }, { "id": "address_label", "type": "symbol", "source": "protomaps", "source-layer": "buildings", "minzoom": 18, "filter": [ "==", "kind", "address" ], "layout": { "symbol-placement": "point", "text-font": [ "Noto Sans Italic" ], "text-field": [ "get", "addr_housenumber" ], "text-size": 12 }, "paint": { "text-color": "#91888b", "text-halo-color": "#ffffff", "text-halo-width": 1 } }, { "id": "water_waterway_label", "type": "symbol", "source": "protomaps", "source-layer": "water", "minzoom": 13, "filter": [ "in", "kind", "river", "stream" ], "layout": { "symbol-placement": "line", "text-font": [ "Noto Sans Italic" ], "text-field": [ "case", [ "all", [ "any", [ "has", "name" ], [ "has", "pgf:name" ] ], [ "!", [ "any", [ "has", "name2" ], [ "has", "pgf:name2" ] ] ], [ "!", [ "any", [ "has", "name3" ], [ "has", "pgf:name3" ] ] ] ], [ "case", [ "!=", [ "get", "script" ], "Arabic" ], [ "case", [ "any", [ "is-supported-script", [ "get", "name" ] ], [ "has", "pgf:name" ] ], [ "format", [ "coalesce", [ "get", "name:fa" ], [ "get", "name:en" ] ], {}, "\n", {}, [ "case", [ "all", [ "!", [ "has", "name:fa" ] ], [ "has", "name:en" ], [ "!", [ "has", "script" ] ] ], "", [ "coalesce", [ "get", "pgf:name" ], [ "get", "name" ] ] ], { "text-font": [ "case", [ "==", [ "get", "script" ], "Devanagari" ], [ "literal", [ "Noto Sans Devanagari Regular v1" ] ], [ "literal", [ "Noto Sans Regular" ] ] ] } ], [ "get", "name:en" ] ], [ "format", [ "coalesce", [ "get", "name:fa" ], [ "get", "pgf:name" ], [ "get", "name" ] ], {} ] ], [ "all", [ "any", [ "has", "name" ], [ "has", "pgf:name" ] ], [ "any", [ "has", "name2" ], [ "has", "pgf:name2" ] ], [ "!", [ "any", [ "has", "name3" ], [ "has", "pgf:name3" ] ] ] ], [ "case", [ "all", [ "!=", [ "get", "script" ], "Arabic" ], [ "!=", [ "get", "script2" ], "Arabic" ] ], [ "format", [ "get", "name:fa" ], {}, "\n", {}, [ "coalesce", [ "get", "pgf:name" ], [ "get", "name" ] ], { "text-font": [ "case", [ "==", [ "get", "script" ], "Devanagari" ], [ "literal", [ "Noto Sans Devanagari Regular v1" ] ], [ "literal", [ "Noto Sans Regular" ] ] ] }, "\n", {}, [ "coalesce", [ "get", "pgf:name2" ], [ "get", "name2" ] ], { "text-font": [ "case", [ "==", [ "get", "script2" ], "Devanagari" ], [ "literal", [ "Noto Sans Devanagari Regular v1" ] ], [ "literal", [ "Noto Sans Regular" ] ] ] } ], [ "case", [ "!=", [ "get", "script2" ], "Arabic" ], [ "format", [ "coalesce", [ "get", "name:fa" ], [ "get", "pgf:name" ], [ "get", "name" ] ], {}, "\n", {}, [ "coalesce", [ "get", "pgf:name2" ], [ "get", "name2" ] ], { "text-font": [ "case", [ "==", [ "get", "script2" ], "Devanagari" ], [ "literal", [ "Noto Sans Devanagari Regular v1" ] ], [ "literal", [ "Noto Sans Regular" ] ] ] } ], [ "format", [ "coalesce", [ "get", "name:fa" ], [ "get", "pgf:name2" ], [ "get", "name2" ] ], {}, "\n", {}, [ "coalesce", [ "get", "pgf:name" ], [ "get", "name" ] ], { "text-font": [ "case", [ "==", [ "get", "script" ], "Devanagari" ], [ "literal", [ "Noto Sans Devanagari Regular v1" ] ], [ "literal", [ "Noto Sans Regular" ] ] ] } ] ] ], [ "case", [ "all", [ "!=", [ "get", "script" ], "Arabic" ], [ "!=", [ "get", "script2" ], "Arabic" ], [ "!=", [