{
 "version": 8,
 "name": "Galena paper, Ontario",
 "metadata": {
  "galena:note": "Adapted from the S0 paper style (map-style-paper.json): its Protomaps basemap layers and colours, without the S0 overlay layers, plus water, road and place labels in Noto Sans for the address lookup. Tiles: Protomaps daily build 20261102, extracted to bbox -81.2,42.8,-78.5,44.4 at zoom 0 to 15. Glyphs: protomaps/basemaps-assets commit 028c18f713baecad011301ff7a69acc39bcc2ae7."
 },
 "glyphs": "https://galena.craftpine.com/tiles/fonts/{fontstack}/{range}.pbf",
 "sources": {
  "protomaps": {
   "type": "vector",
   "url": "pmtiles://https://galena.craftpine.com/tiles/ontario.pmtiles",
   "attribution": "&#169; OpenStreetMap contributors, &#169; Protomaps"
  }
 },
 "layers": [
  {
   "id": "background",
   "type": "background",
   "paint": {
    "background-color": "#F3EEE6"
   }
  },
  {
   "id": "earth",
   "type": "fill",
   "source": "protomaps",
   "source-layer": "earth",
   "paint": {
    "fill-color": "#F3EEE6"
   }
  },
  {
   "id": "landcover-urban",
   "type": "fill",
   "source": "protomaps",
   "source-layer": "landcover",
   "filter": [
    "==",
    [
     "get",
     "kind"
    ],
    "urban_area"
   ],
   "paint": {
    "fill-color": "#ECE7DF"
   }
  },
  {
   "id": "landuse-built",
   "type": "fill",
   "source": "protomaps",
   "source-layer": "landuse",
   "filter": [
    "in",
    [
     "get",
     "kind"
    ],
    [
     "literal",
     [
      "residential",
      "commercial",
      "industrial",
      "retail",
      "railway",
      "airport",
      "aerodrome",
      "university",
      "college",
      "school",
      "hospital"
     ]
    ]
   ],
   "paint": {
    "fill-color": "#ECE7DF"
   }
  },
  {
   "id": "landuse-park",
   "type": "fill",
   "source": "protomaps",
   "source-layer": "landuse",
   "filter": [
    "in",
    [
     "get",
     "kind"
    ],
    [
     "literal",
     [
      "park",
      "garden",
      "golf_course",
      "cemetery",
      "pitch",
      "playground",
      "nature_reserve",
      "recreation_ground",
      "village_green",
      "national_park",
      "protected_area"
     ]
    ]
   ],
   "paint": {
    "fill-color": "#E2E4D8"
   }
  },
  {
   "id": "boundary-municipal",
   "type": "line",
   "source": "protomaps",
   "source-layer": "boundaries",
   "filter": [
    "in",
    [
     "get",
     "kind"
    ],
    [
     "literal",
     [
      "locality",
      "county",
      "region"
     ]
    ]
   ],
   "paint": {
    "line-color": "#1A1814",
    "line-width": 0.75,
    "line-dasharray": [
     6,
     2,
     1,
     2
    ]
   }
  },
  {
   "id": "waterway-casing",
   "type": "line",
   "source": "protomaps",
   "source-layer": "water",
   "filter": [
    "all",
    [
     "==",
     [
      "geometry-type"
     ],
     "LineString"
    ],
    [
     "in",
     [
      "get",
      "kind"
     ],
     [
      "literal",
      [
       "river",
       "stream",
       "canal",
       "drain",
       "ditch"
      ]
     ]
    ]
   ],
   "paint": {
    "line-color": "#D3E0E8",
    "line-width": 2.5
   }
  },
  {
   "id": "waterway",
   "type": "line",
   "source": "protomaps",
   "source-layer": "water",
   "filter": [
    "all",
    [
     "==",
     [
      "geometry-type"
     ],
     "LineString"
    ],
    [
     "in",
     [
      "get",
      "kind"
     ],
     [
      "literal",
      [
       "river",
       "stream",
       "canal",
       "drain",
       "ditch"
      ]
     ]
    ]
   ],
   "paint": {
    "line-color": "#245C8A",
    "line-width": [
     "match",
     [
      "get",
      "kind"
     ],
     "river",
     1.0,
     0.75
    ]
   }
  },
  {
   "id": "roads-casing",
   "type": "line",
   "source": "protomaps",
   "source-layer": "roads",
   "filter": [
    "all",
    [
     "in",
     [
      "get",
      "kind"
     ],
     [
      "literal",
      [
       "highway",
       "major_road",
       "medium_road",
       "minor_road"
      ]
     ]
    ],
    [
     "!",
     [
      "coalesce",
      [
       "get",
       "is_link"
      ],
      false
     ]
    ]
   ],
   "layout": {
    "line-cap": "round",
    "line-join": "round"
   },
   "paint": {
    "line-color": "#F3EEE6",
    "line-width": [
     "match",
     [
      "get",
      "kind"
     ],
     "highway",
     2.75,
     "major_road",
     3.5,
     "medium_road",
     2.5,
     1.75
    ]
   }
  },
  {
   "id": "roads-link-casing",
   "type": "line",
   "source": "protomaps",
   "source-layer": "roads",
   "filter": [
    "all",
    [
     "in",
     [
      "get",
      "kind"
     ],
     [
      "literal",
      [
       "highway",
       "major_road",
       "medium_road",
       "minor_road"
      ]
     ]
    ],
    [
     "coalesce",
     [
      "get",
      "is_link"
     ],
     false
    ]
   ],
   "layout": {
    "line-cap": "round",
    "line-join": "round"
   },
   "paint": {
    "line-color": "#F3EEE6",
    "line-width": 2.5
   }
  },
  {
   "id": "roads-link",
   "type": "line",
   "source": "protomaps",
   "source-layer": "roads",
   "filter": [
    "all",
    [
     "in",
     [
      "get",
      "kind"
     ],
     [
      "literal",
      [
       "highway",
       "major_road",
       "medium_road",
       "minor_road"
      ]
     ]
    ],
    [
     "coalesce",
     [
      "get",
      "is_link"
     ],
     false
    ]
   ],
   "layout": {
    "line-cap": "round",
    "line-join": "round"
   },
   "paint": {
    "line-color": "#1A1814",
    "line-width": 1.0
   }
  },
  {
   "id": "roads-minor",
   "type": "line",
   "source": "protomaps",
   "source-layer": "roads",
   "filter": [
    "all",
    [
     "==",
     [
      "get",
      "kind"
     ],
     "minor_road"
    ],
    [
     "!",
     [
      "coalesce",
      [
       "get",
       "is_link"
      ],
      false
     ]
    ]
   ],
   "layout": {
    "line-cap": "round",
    "line-join": "round"
   },
   "paint": {
    "line-color": "#1A1814",
    "line-width": 0.75
   }
  },
  {
   "id": "roads-medium",
   "type": "line",
   "source": "protomaps",
   "source-layer": "roads",
   "filter": [
    "all",
    [
     "==",
     [
      "get",
      "kind"
     ],
     "medium_road"
    ],
    [
     "!",
     [
      "coalesce",
      [
       "get",
       "is_link"
      ],
      false
     ]
    ]
   ],
   "layout": {
    "line-cap": "round",
    "line-join": "round"
   },
   "paint": {
    "line-color": "#1A1814",
    "line-width": 1.0
   }
  },
  {
   "id": "roads-major",
   "type": "line",
   "source": "protomaps",
   "source-layer": "roads",
   "filter": [
    "all",
    [
     "==",
     [
      "get",
      "kind"
     ],
     "major_road"
    ],
    [
     "!",
     [
      "coalesce",
      [
       "get",
       "is_link"
      ],
      false
     ]
    ]
   ],
   "layout": {
    "line-cap": "round",
    "line-join": "round"
   },
   "paint": {
    "line-color": "#1A1814",
    "line-width": 1.5
   }
  },
  {
   "id": "roads-highway",
   "type": "line",
   "source": "protomaps",
   "source-layer": "roads",
   "filter": [
    "all",
    [
     "==",
     [
      "get",
      "kind"
     ],
     "highway"
    ],
    [
     "!",
     [
      "coalesce",
      [
       "get",
       "is_link"
      ],
      false
     ]
    ]
   ],
   "layout": {
    "line-cap": "round",
    "line-join": "round"
   },
   "paint": {
    "line-color": "#1A1814",
    "line-width": 1.25
   }
  },
  {
   "id": "rail-line",
   "type": "line",
   "source": "protomaps",
   "source-layer": "roads",
   "filter": [
    "all",
    [
     "==",
     [
      "get",
      "kind"
     ],
     "rail"
    ],
    [
     "!",
     [
      "in",
      [
       "get",
       "kind_detail"
      ],
      [
       "literal",
       [
        "light_rail",
        "tram",
        "subway"
       ]
      ]
     ]
    ]
   ],
   "paint": {
    "line-color": "#1A1814",
    "line-width": 0.75
   }
  },
  {
   "id": "rail-ticks",
   "type": "line",
   "source": "protomaps",
   "source-layer": "roads",
   "filter": [
    "all",
    [
     "==",
     [
      "get",
      "kind"
     ],
     "rail"
    ],
    [
     "!",
     [
      "in",
      [
       "get",
       "kind_detail"
      ],
      [
       "literal",
       [
        "light_rail",
        "tram",
        "subway"
       ]
      ]
     ]
    ]
   ],
   "paint": {
    "line-color": "#1A1814",
    "line-width": 5,
    "line-dasharray": [
     0.15,
     1.6
    ]
   }
  },
  {
   "id": "buildings",
   "type": "fill",
   "source": "protomaps",
   "source-layer": "buildings",
   "minzoom": 14,
   "paint": {
    "fill-color": "#DDD6CA"
   }
  },
  {
   "id": "label-water",
   "type": "symbol",
   "source": "protomaps",
   "source-layer": "water",
   "minzoom": 12,
   "filter": [
    "has",
    "name"
   ],
   "layout": {
    "text-field": [
     "get",
     "name"
    ],
    "text-font": [
     "Noto Sans Italic"
    ],
    "text-size": 12,
    "symbol-placement": "point"
   },
   "paint": {
    "text-color": "#245C8A",
    "text-halo-color": "#F3EEE6",
    "text-halo-width": 1.5
   }
  },
  {
   "id": "label-roads",
   "type": "symbol",
   "source": "protomaps",
   "source-layer": "roads",
   "minzoom": 13,
   "filter": [
    "all",
    [
     "has",
     "name"
    ],
    [
     "in",
     [
      "get",
      "kind"
     ],
     [
      "literal",
      [
       "highway",
       "major_road",
       "minor_road"
      ]
     ]
    ]
   ],
   "layout": {
    "text-field": [
     "get",
     "name"
    ],
    "text-font": [
     "Noto Sans Regular"
    ],
    "symbol-placement": "line",
    "text-size": [
     "interpolate",
     [
      "linear"
     ],
     [
      "zoom"
     ],
     13,
     10,
     17,
     13
    ],
    "text-letter-spacing": 0.04
   },
   "paint": {
    "text-color": "#4B4640",
    "text-halo-color": "#F3EEE6",
    "text-halo-width": 2
   }
  },
  {
   "id": "label-places",
   "type": "symbol",
   "source": "protomaps",
   "source-layer": "places",
   "minzoom": 10,
   "filter": [
    "in",
    [
     "get",
     "kind"
    ],
    [
     "literal",
     [
      "locality",
      "neighbourhood",
      "macrohood"
     ]
    ]
   ],
   "layout": {
    "text-field": [
     "get",
     "name"
    ],
    "text-font": [
     "Noto Sans Regular"
    ],
    "text-size": [
     "interpolate",
     [
      "linear"
     ],
     [
      "zoom"
     ],
     10,
     11,
     15,
     14
    ],
    "text-transform": "uppercase",
    "text-letter-spacing": 0.1
   },
   "paint": {
    "text-color": "#67615A",
    "text-halo-color": "#F3EEE6",
    "text-halo-width": 2
   }
  }
 ]
}