import { LayerSpecification } from "maplibre-gl";

export const layerSpecification: LayerSpecification[] = [
  {
    id: "forest",
    source: "tiles",
    "source-layer": "forest",
    type: "fill",
    paint: {
      "fill-color": "#90ee90",
    },
  },
  {
    id: "water",
    source: "tiles",
    "source-layer": "water",
    filter: ["==", ["geometry-type"], "Polygon"],
    type: "fill",
    paint: {
      "fill-color": "#add8e6",
    },
  },
  {
    id: "buildings",
    source: "tiles",
    "source-layer": "buildings",
    type: "fill",
    paint: {
      "fill-color": "#ffffc5",
    },
  },
  {
    id: "roads",
    source: "tiles",
    "source-layer": "roads",
    type: "line",
    paint: {
      "line-color": "#d3d3d3",
    },
  },
];
