{
  "version": 8,
  "name": "Bookmap",
  "metadata": {
    "mapbox:autocomposite": false,
    "mapbox:groups": {
      "101da9f13b64a08fa4b6ac1168e89e5f": {
        "collapsed": false,
        "name": "Places"
      },
      "a14c9607bc7954ba1df7205bf660433f": {
        "name": "Boundaries"
      },
      "b6371a3f2f5a9932464fa3867530a2e5": {
        "collapsed": false,
        "name": "Transportation"
      }
    },
    "mapbox:type": "template",
    "openmaptiles:mapbox:owner": "openmaptiles",
    "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t",
    "openmaptiles:version": "3.x",
    "maputnik:renderer": "mlgljs"
  },
  "sources": {
    "maptiler-hillshade": {
      "url": "https://api.maptiler.com/tiles/hillshade/tiles.json?key=iMg3lueCZxkUUN5R9hPR",
      "type": "raster"
    },
    "land": {
      "url": "https://api.maptiler.com/tiles/land/tiles.json?key=iMg3lueCZxkUUN5R9hPR",
      "type": "vector"
    },
    "land-gradient": {
      "url": "https://api.maptiler.com/tiles/land-gradient-dark/tiles.json?key=iMg3lueCZxkUUN5R9hPR",
      "type": "raster"
    },
    "osm": {
      "type": "vector",
      "tiles": [
        "https://vtiles.openhistoricalmap.org/maps/osm/{z}/{x}/{y}.pbf"
      ]
    }
  },
  "sprite": "https://viking2917.github.io/bookmap/sprites/bookmap_spritesheet",
  "glyphs": "https://api.maptiler.com/fonts/{fontstack}/{range}.pbf?key=iMg3lueCZxkUUN5R9hPR",
  "layers": [
    {
      "id": "Land Gradient Dark",
      "type": "raster",
      "source": "land-gradient",
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "raster-hue-rotate": 240,
        "raster-brightness-min": 0.3,
        "raster-opacity": 0.5,
        "raster-contrast": 0.4
      }
    },
    {
      "id": "Land shadow north",
      "type": "line",
      "source": "land",
      "source-layer": "land",
      "layout": {
        "visibility": "visible",
        "line-cap": "butt",
        "line-join": "miter"
      },
      "paint": {
        "line-color": "rgba(37, 37, 37, 0.41)",
        "line-opacity": 1,
        "line-translate": [
          "interpolate",
          ["linear"],
          ["zoom"],
          0,
          ["literal", [-0.75, -0.75]],
          3,
          ["literal", [-1, -1]],
          5,
          ["literal", [-1.5, -1.5]]
        ],
        "line-width": 3
      },
      "filter": [
        "==",
        ["geometry-type"],
        "Polygon"
      ]
    },
    {
      "id": "Land shadow south",
      "type": "line",
      "source": "land",
      "source-layer": "land",
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "line-color": "rgba(133, 177, 219, 0.75)",
        "line-opacity": 1,
        "line-translate": [
          "interpolate",
          ["linear"],
          ["zoom"],
          0,
          ["literal", [0.75, 0.75]],
          3,
          ["literal", [1, 1]],
          5,
          ["literal", [1.5, 1.5]]
        ],
        "line-width": 1
      },
      "filter": [
        "==",
        ["geometry-type"],
        "Polygon"
      ]
    },
    {
      "id": "Land Texture",
      "type": "fill",
      "source": "land",
      "source-layer": "land",
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "fill-color": "rgba(255, 251, 235, 0.67)",
        "fill-opacity": 1,
        "fill-pattern": "paper"
      },
      "filter": [
        "==",
        ["geometry-type"],
        "Polygon"
      ]
    },
    {
      "id": "hillside shading",
      "type": "raster",
      "source": "maptiler-hillshade",
      "layout": {
        "visibility": "visible"
      }
    },
    {
      "id": "admin_country_lines_z10",
      "type": "line",
      "source": "osm",
      "source-layer": "land_ohm_lines",
      "minzoom": 0,
      "maxzoom": 20,
      "filter": [
        "in",
        ["get", "admin_level"],
        ["literal", [1, 2]]
      ],
      "layout": {
        "visibility": "visible",
        "line-cap": "square",
        "line-join": "round"
      },
      "paint": {
        "line-color": [
          "interpolate",
          ["linear"],
          ["zoom"],
          4,
          "rgba(126, 144, 127, 1)",
          6,
          "rgba(147, 171, 148, 1)",
          8,
          "rgba(177, 182, 177, 1)",
          12,
          "rgba(203, 212, 203, 1)"
        ],
        "line-width": [
          "interpolate",
          ["linear"],
          ["zoom"],
          0,
          0.25,
          2,
          0.75,
          4,
          1,
          6,
          2,
          12,
          2.5,
          15,
          4
        ]
      }
    },
    {
      "id": "country_points_labels_cen",
      "type": "symbol",
      "source": "osm",
      "source-layer": "land_ohm_centroids",
      "maxzoom": 24,
      "filter": [
        "all",
        [
          "==",
          ["get", "type"],
          "administrative"
        ],
        [
          "<=",
          ["get", "admin_level"],
          5
        ]
      ],
      "layout": {
        "symbol-sort-key": [
          "get",
          "area_km2"
        ],
        "text-line-height": 1,
        "text-size": [
          "interpolate",
          ["linear"],
          ["zoom"],
          0,
          8,
          3,
          12,
          6,
          20,
          10,
          22
        ],
        "symbol-avoid-edges": false,
        "text-font": [
          "OpenHistorical Bold"
        ],
        "symbol-placement": "point",
        "text-justify": "center",
        "visibility": "visible",
        "text-field": [
          "coalesce",
          ["get", "name_en"],
          ["get", "name"]
        ],
        "text-max-width": 7
      },
      "paint": {
        "text-color": [
          "interpolate",
          ["linear"],
          ["zoom"],
          0,
          "#495049",
          5,
          "#6d786d"
        ],
        "text-halo-width": 1.5,
        "text-halo-color": [
          "interpolate",
          ["linear"],
          ["zoom"],
          0,
          "rgba(252, 255, 254, 0.75)",
          3,
          "rgba(240, 244, 216, 1)",
          5,
          "rgba(246,247,227, 1)",
          7,
          "rgba(255, 255, 255, 1)"
        ],
        "text-halo-blur": 1,
        "text-opacity": 1,
        "text-translate-anchor": "map"
      }
    },
    {
      "id": "country_points_labels",
      "type": "symbol",
      "source": "osm",
      "source-layer": "place_points_centroids",
      "minzoom": 0,
      "maxzoom": 24,
      "filter": [
        "==",
        ["get", "type"],
        "country"
      ],
      "layout": {
        "text-line-height": 1,
        "text-size": [
          "interpolate",
          ["linear"],
          ["zoom"],
          0,
          8,
          3,
          12,
          6,
          20,
          10,
          22
        ],
        "symbol-avoid-edges": false,
        "text-font": [
          "OpenHistorical Bold"
        ],
        "symbol-placement": "point",
        "text-justify": "center",
        "visibility": "visible",
        "text-field": [
          "coalesce",
          ["get", "name_en"],
          ["get", "name"]
        ],
        "text-max-width": 7
      },
      "paint": {
        "text-color": [
          "interpolate",
          ["linear"],
          ["zoom"],
          0,
          "#495049",
          5,
          "#6d786d"
        ],
        "text-halo-width": 1.5,
        "text-halo-color": [
          "interpolate",
          ["linear"],
          ["zoom"],
          0,
          "rgba(252, 255, 254, 0.75)",
          3,
          "rgba(240, 244, 216, 1)",
          5,
          "rgba(246,247,227, 1)",
          7,
          "rgba(255, 255, 255, 1)"
        ],
        "text-halo-blur": 1,
        "text-opacity": 1,
        "text-translate-anchor": "map"
      }
    }
  ],
  "id": "positron"
}