{
  "version": 8,
  "name": "NISAR Surface Change Monitor · Sarangani & Davao Occidental",
  "glyphs": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf",
  "sources": {
    "esri-ocean-base": {
      "type": "raster",
      "tiles": [
        "https://server.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}"
      ],
      "tileSize": 256,
      "maxzoom": 10,
      "attribution": "Esri, GEBCO, NOAA, Garmin, HERE"
    },
    "hillshade-dem": {
      "type": "raster-dem",
      "tiles": [
        "https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"
      ],
      "encoding": "terrarium",
      "tileSize": 256,
      "maxzoom": 13
    },
    "esri-world-imagery": {
      "type": "raster",
      "tiles": [
        "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"
      ],
      "tileSize": 256,
      "attribution": "Esri, Maxar, Earthstar Geographics"
    },
    "esri-boundaries": {
      "type": "raster",
      "tiles": [
        "https://services.arcgisonline.com/arcgis/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x}"
      ],
      "tileSize": 256,
      "attribution": "Esri"
    },
    "terrain-dem": {
      "type": "raster-dem",
      "tiles": [
        "https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"
      ],
      "encoding": "terrarium",
      "tileSize": 256,
      "maxzoom": 14,
      "attribution": "Terrain Tiles: Mapzen, AWS Open Data"
    },
    "reference-labels": {
      "type": "geojson",
      "data": {
        "type": "FeatureCollection",
        "features": [
          {
            "type": "Feature",
            "geometry": {
              "type": "Point",
              "coordinates": [124.98, 5.57]
            },
            "properties": {
              "name": "M7.8 Epicentre (8 Jun 2026)",
              "kind": "epicentre"
            }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.2869, 6.1028] },
            "properties": { "name": "Alabel", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.2044, 5.8247] },
            "properties": { "name": "Glan", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.2886, 5.9669] },
            "properties": { "name": "Malapatan", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.0042, 5.8594] },
            "properties": { "name": "Maasim", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [124.6242, 5.9892] },
            "properties": { "name": "Kiamba", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [124.4975, 6.0394] },
            "properties": { "name": "Maitum", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.2764, 6.2994] },
            "properties": { "name": "Malungon", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.6089, 6.4036] },
            "properties": { "name": "Malita", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.4714, 6.5519] },
            "properties": { "name": "Santa Maria", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.6542, 6.1972] },
            "properties": { "name": "Don Marcelino", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.4728, 5.8644] },
            "properties": { "name": "Jose Abad Santos", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.405, 5.402] },
            "properties": { "name": "Sarangani Island", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.1716, 6.1164] },
            "properties": { "name": "General Santos", "kind": "place" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.11, 5.95] },
            "properties": { "name": "Sarangani Bay", "kind": "sea" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [124.75, 5.55] },
            "properties": { "name": "Celebes Sea", "kind": "sea" }
          },
          {
            "type": "Feature",
            "geometry": { "type": "Point", "coordinates": [125.85, 6.45] },
            "properties": { "name": "Davao Gulf", "kind": "sea" }
          }
        ]
      }
    }
  },
  "sky": {
    "sky-color": "#cfe6f2",
    "horizon-color": "#f3efe2",
    "fog-color": "#e9f1ee",
    "sky-horizon-blend": 0.6,
    "horizon-fog-blend": 0.6,
    "fog-ground-blend": 0.9
  },
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": { "background-color": "#bfdbe3" }
    },
    {
      "id": "light-basemap",
      "type": "raster",
      "source": "esri-ocean-base",
      "paint": { "raster-saturation": 0.25, "raster-brightness-min": 0.05 }
    },
    {
      "id": "basemap",
      "type": "raster",
      "source": "esri-world-imagery",
      "layout": { "visibility": "none" },
      "paint": { "raster-opacity": 1 }
    },
    {
      "id": "hillshade",
      "type": "hillshade",
      "source": "hillshade-dem",
      "paint": {
        "hillshade-exaggeration": 0.5,
        "hillshade-illumination-direction": 315,
        "hillshade-shadow-color": "#4f6b3a",
        "hillshade-highlight-color": "#fffbe8",
        "hillshade-accent-color": "#6d7f45"
      }
    },
    {
      "id": "admin-boundaries",
      "type": "raster",
      "source": "esri-boundaries",
      "layout": { "visibility": "none" },
      "paint": { "raster-opacity": 0.7 }
    },
    {
      "id": "cities-labels",
      "type": "symbol",
      "source": "reference-labels",
      "filter": ["!=", ["get", "kind"], "epicentre"],
      "layout": {
        "visibility": "visible",
        "text-field": ["get", "name"],
        "text-font": ["Noto Sans Regular"],
        "text-size": [
          "interpolate",
          ["linear"],
          ["zoom"],
          5,
          10,
          9,
          12,
          12,
          14
        ],
        "text-anchor": "center",
        "text-allow-overlap": false
      },
      "paint": {
        "text-color": [
          "match",
          ["get", "kind"],
          "sea",
          "#2f6f86",
          "epicentre",
          "#b03a2e",
          "#3b2f22"
        ],
        "text-halo-color": "#fff8e8",
        "text-halo-width": 1.6
      }
    }
  ]
}
