{
  "version": 8,
  "glyphs": "https://maps.nipps.com.au/glyphs/{fontstack}/{range}.pbf",
  "sprite": "https://maps.nipps.com.au/sprites/sprite",
  "sources": {
    "basemap": {
      "type": "vector",
      "url": "pmtiles://https://maps.nipps.com.au/basemap.pmtiles",
      "attribution": "© OpenStreetMap contributors"
    }
  },
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": {
        "background-color": "#f5f7fa"
      }
    },
    {
      "id": "landcover",
      "type": "fill",
      "source": "basemap",
      "source-layer": "landcover",
      "paint": {
        "fill-color": "#eef3ea"
      }
    },
    {
      "id": "landuse",
      "type": "fill",
      "source": "basemap",
      "source-layer": "landuse",
      "paint": {
        "fill-color": "#f3f1eb",
        "fill-opacity": 0.7
      }
    },
    {
      "id": "park",
      "type": "fill",
      "source": "basemap",
      "source-layer": "park",
      "paint": {
        "fill-color": "#dcefd6"
      }
    },
    {
      "id": "water",
      "type": "fill",
      "source": "basemap",
      "source-layer": "water",
      "paint": {
        "fill-color": "#bcdff5"
      }
    },
    {
      "id": "waterway",
      "type": "line",
      "source": "basemap",
      "source-layer": "waterway",
      "paint": {
        "line-color": "#9fd0f2",
        "line-width": [
          "interpolate",
          ["linear"],
          ["zoom"],
          8, 0.4,
          16, 2
        ]
      }
    },
    {
      "id": "aeroway",
      "type": "line",
      "source": "basemap",
      "source-layer": "aeroway",
      "paint": {
        "line-color": "#d6d6d6",
        "line-width": [
          "interpolate",
          ["linear"],
          ["zoom"],
          10, 0.6,
          16, 3
        ]
      }
    },
    {
      "id": "transportation-default",
      "type": "line",
      "source": "basemap",
      "source-layer": "transportation",
      "paint": {
        "line-color": "#e8e8e8",
        "line-width": [
          "interpolate",
          ["linear"],
          ["zoom"],
          8, 0.5,
          16, 2.5
        ]
      }
    },
    {
      "id": "transportation-minor",
      "type": "line",
      "source": "basemap",
      "source-layer": "transportation",
      "filter": [
        "match",
        ["get", "class"],
        ["path", "track", "service", "minor"],
        true,
        false
      ],
      "paint": {
        "line-color": "#ffffff",
        "line-width": [
          "interpolate",
          ["linear"],
          ["zoom"],
          10, 0.5,
          16, 2
        ]
      }
    },
    {
      "id": "transportation-major",
      "type": "line",
      "source": "basemap",
      "source-layer": "transportation",
      "filter": [
        "match",
        ["get", "class"],
        ["primary", "secondary", "tertiary", "trunk", "motorway"],
        true,
        false
      ],
      "paint": {
        "line-color": "#f7d7a8",
        "line-width": [
          "interpolate",
          ["linear"],
          ["zoom"],
          8, 0.8,
          16, 4
        ]
      }
    },
    {
      "id": "boundary",
      "type": "line",
      "source": "basemap",
      "source-layer": "boundary",
      "paint": {
        "line-color": "#c7c7c7",
        "line-width": 0.8,
        "line-dasharray": [2, 2]
      }
    },
    {
      "id": "building",
      "type": "fill",
      "source": "basemap",
      "source-layer": "building",
      "minzoom": 13,
      "paint": {
        "fill-color": "#ddd6cf",
        "fill-opacity": 0.85
      }
    },
    {
      "id": "water-label",
      "type": "symbol",
      "source": "basemap",
      "source-layer": "water_name",
      "layout": {
        "text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
        "text-font": ["Open Sans Regular"],
        "text-size": [
          "interpolate",
          ["linear"],
          ["zoom"],
          5, 10,
          12, 14
        ]
      },
      "paint": {
        "text-color": "#4e89b7",
        "text-halo-color": "#ffffff",
        "text-halo-width": 1
      }
    },
    {
      "id": "road-label",
      "type": "symbol",
      "source": "basemap",
      "source-layer": "transportation_name",
      "layout": {
        "symbol-placement": "line",
        "text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
        "text-font": ["Open Sans Regular"],
        "text-size": [
          "interpolate",
          ["linear"],
          ["zoom"],
          10, 9,
          16, 13
        ]
      },
      "paint": {
        "text-color": "#6b6b6b",
        "text-halo-color": "#ffffff",
        "text-halo-width": 1.2
      }
    },
    {
      "id": "place-label",
      "type": "symbol",
      "source": "basemap",
      "source-layer": "place",
      "layout": {
        "text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
        "text-font": ["Open Sans Regular"],
        "text-size": [
          "interpolate",
          ["linear"],
          ["zoom"],
          4, 10,
          10, 14,
          14, 18
        ]
      },
      "paint": {
        "text-color": "#333333",
        "text-halo-color": "#ffffff",
        "text-halo-width": 1.2
      }
    },
    {
      "id": "housenumber-label",
      "type": "symbol",
      "source": "basemap",
      "source-layer": "housenumber",
      "minzoom": 16,
      "layout": {
        "text-field": ["coalesce", ["get", "housenumber"], ["get", "name"]],
        "text-font": ["Open Sans Regular"],
        "text-size": 10
      },
      "paint": {
        "text-color": "#7a7a7a",
        "text-halo-color": "#ffffff",
        "text-halo-width": 1
      }
    },
    {
      "id": "poi-label",
      "type": "symbol",
      "source": "basemap",
      "source-layer": "poi",
      "minzoom": 14,
      "layout": {
        "text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
        "text-font": ["Open Sans Regular"],
        "text-size": [
          "interpolate",
          ["linear"],
          ["zoom"],
          14, 10,
          17, 13
        ]
      },
      "paint": {
        "text-color": "#4b5563",
        "text-halo-color": "#ffffff",
        "text-halo-width": 1
      }
    }
  ]
}
