{
  "version": 8,
  "name": "FMI NLS etela/overlay-sv",
  "id": "fmi-nls-etela-overlay-sv",
  "center": [
    25.4,
    65.3
  ],
  "zoom": 4.3,
  "metadata": {
    "description": "Roads by class, the Finnish border, maakunta boundaries, town dots (z0-4) and place names from NLS Maastokartta (vektori); coastline from the Protomaps base map of the www.fmi.fi styles. After the www.fmi.fi overlay_fi style. No background.",
    "fmi-nls-tiles": "styles-src/nls/, generated by scripts/build-styles.mjs. Edit the sources, not this."
  },
  "sources": {
    "nls": {
      "type": "vector",
      "url": "https://dzr34plfemya.cloudfront.net/nls-20261106.json",
      "attribution": "© <a href=\"https://www.maanmittauslaitos.fi/avoindata-lisenssi-cc40\">Maanmittauslaitos</a>",
      "maxzoom": 5
    },
    "protomaps": {
      "type": "vector",
      "url": "https://dzr34plfemya.cloudfront.net/20260923-earth-z9.json",
      "attribution": "<a href=\"https://github.com/protomaps/basemaps\">Protomaps</a> © <a href=\"https://osm.org/copyright\">OpenStreetMap</a>",
      "maxzoom": 5
    }
  },
  "glyphs": "https://dzr34plfemya.cloudfront.net/assets/fonts/{fontstack}/{range}.pbf",
  "layers": [
    {
      "id": "rantaviiva",
      "type": "line",
      "source": "protomaps",
      "source-layer": "earth",
      "filter": [
        "==",
        "$type",
        "Polygon"
      ],
      "layout": {
        "line-join": "round"
      },
      "paint": {
        "line-color": "#383838",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          4,
          1,
          10,
          0.5
        ],
        "line-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          6,
          1,
          10,
          0.45
        ]
      }
    },
    {
      "id": "tiet-yhdystie-reuna",
      "type": "line",
      "source": "nls",
      "source-layer": "tiet",
      "minzoom": 8,
      "filter": [
        "all",
        [
          "!",
          [
            "any",
            [
              "==",
              [
                "get",
                "Tieluokka"
              ],
              9
            ],
            [
              "in",
              [
                "get",
                "Kohdeluokk"
              ],
              [
                "literal",
                [
                  12151,
                  12152
                ]
              ]
            ]
          ]
        ],
        [
          "in",
          [
            "coalesce",
            [
              "get",
              "Tieluokka"
            ],
            4
          ],
          [
            "literal",
            [
              4,
              5
            ]
          ]
        ]
      ],
      "layout": {
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "rgb(90, 90, 100)",
        "line-gap-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          8,
          0.5,
          10,
          1.3
        ],
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          8,
          0.25,
          10,
          0.5
        ]
      }
    },
    {
      "id": "tiet-seututie-reuna",
      "type": "line",
      "source": "nls",
      "source-layer": "tiet",
      "minzoom": 7,
      "filter": [
        "all",
        [
          "!",
          [
            "any",
            [
              "==",
              [
                "get",
                "Tieluokka"
              ],
              9
            ],
            [
              "in",
              [
                "get",
                "Kohdeluokk"
              ],
              [
                "literal",
                [
                  12151,
                  12152
                ]
              ]
            ]
          ]
        ],
        [
          "in",
          [
            "coalesce",
            [
              "get",
              "Tieluokka"
            ],
            4
          ],
          [
            "literal",
            [
              3
            ]
          ]
        ]
      ],
      "layout": {
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "rgb(90, 90, 100)",
        "line-gap-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          7,
          0.8,
          10,
          2
        ],
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          7,
          0.3,
          10,
          0.6
        ]
      }
    },
    {
      "id": "tiet-kantatie-reuna",
      "type": "line",
      "source": "nls",
      "source-layer": "tiet",
      "minzoom": 5,
      "filter": [
        "all",
        [
          "!",
          [
            "any",
            [
              "==",
              [
                "get",
                "Tieluokka"
              ],
              9
            ],
            [
              "in",
              [
                "get",
                "Kohdeluokk"
              ],
              [
                "literal",
                [
                  12151,
                  12152
                ]
              ]
            ]
          ]
        ],
        [
          "in",
          [
            "coalesce",
            [
              "get",
              "Tieluokka"
            ],
            4
          ],
          [
            "literal",
            [
              2
            ]
          ]
        ]
      ],
      "layout": {
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "rgb(90, 90, 100)",
        "line-gap-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          5,
          0.8,
          7,
          1.3,
          10,
          2.6
        ],
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5,
          0.35,
          10,
          0.7
        ]
      }
    },
    {
      "id": "tiet-valtatie-reuna",
      "type": "line",
      "source": "nls",
      "source-layer": "tiet",
      "filter": [
        "all",
        [
          "!",
          [
            "any",
            [
              "==",
              [
                "get",
                "Tieluokka"
              ],
              9
            ],
            [
              "in",
              [
                "get",
                "Kohdeluokk"
              ],
              [
                "literal",
                [
                  12151,
                  12152
                ]
              ]
            ]
          ]
        ],
        [
          "in",
          [
            "coalesce",
            [
              "get",
              "Tieluokka"
            ],
            4
          ],
          [
            "literal",
            [
              1
            ]
          ]
        ]
      ],
      "layout": {
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "rgb(90, 90, 100)",
        "line-gap-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          3,
          0.7,
          5,
          1,
          7,
          1.6,
          10,
          3.2
        ],
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          3,
          0.35,
          5,
          0.45,
          10,
          0.8
        ]
      }
    },
    {
      "id": "tiet-yhdystie",
      "type": "line",
      "source": "nls",
      "source-layer": "tiet",
      "minzoom": 8,
      "filter": [
        "all",
        [
          "!",
          [
            "any",
            [
              "==",
              [
                "get",
                "Tieluokka"
              ],
              9
            ],
            [
              "in",
              [
                "get",
                "Kohdeluokk"
              ],
              [
                "literal",
                [
                  12151,
                  12152
                ]
              ]
            ]
          ]
        ],
        [
          "in",
          [
            "coalesce",
            [
              "get",
              "Tieluokka"
            ],
            4
          ],
          [
            "literal",
            [
              4,
              5
            ]
          ]
        ]
      ],
      "layout": {
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "rgb(235, 235, 235)",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          8,
          0.5,
          10,
          1.3
        ]
      }
    },
    {
      "id": "tiet-seututie",
      "type": "line",
      "source": "nls",
      "source-layer": "tiet",
      "minzoom": 7,
      "filter": [
        "all",
        [
          "!",
          [
            "any",
            [
              "==",
              [
                "get",
                "Tieluokka"
              ],
              9
            ],
            [
              "in",
              [
                "get",
                "Kohdeluokk"
              ],
              [
                "literal",
                [
                  12151,
                  12152
                ]
              ]
            ]
          ]
        ],
        [
          "in",
          [
            "coalesce",
            [
              "get",
              "Tieluokka"
            ],
            4
          ],
          [
            "literal",
            [
              3
            ]
          ]
        ]
      ],
      "layout": {
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "rgb(235, 235, 235)",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          7,
          0.8,
          10,
          2
        ]
      }
    },
    {
      "id": "tiet-kantatie",
      "type": "line",
      "source": "nls",
      "source-layer": "tiet",
      "minzoom": 5,
      "filter": [
        "all",
        [
          "!",
          [
            "any",
            [
              "==",
              [
                "get",
                "Tieluokka"
              ],
              9
            ],
            [
              "in",
              [
                "get",
                "Kohdeluokk"
              ],
              [
                "literal",
                [
                  12151,
                  12152
                ]
              ]
            ]
          ]
        ],
        [
          "in",
          [
            "coalesce",
            [
              "get",
              "Tieluokka"
            ],
            4
          ],
          [
            "literal",
            [
              2
            ]
          ]
        ]
      ],
      "layout": {
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "rgb(235, 235, 235)",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          5,
          0.8,
          7,
          1.3,
          10,
          2.6
        ]
      }
    },
    {
      "id": "tiet-valtatie",
      "type": "line",
      "source": "nls",
      "source-layer": "tiet",
      "filter": [
        "all",
        [
          "!",
          [
            "any",
            [
              "==",
              [
                "get",
                "Tieluokka"
              ],
              9
            ],
            [
              "in",
              [
                "get",
                "Kohdeluokk"
              ],
              [
                "literal",
                [
                  12151,
                  12152
                ]
              ]
            ]
          ]
        ],
        [
          "in",
          [
            "coalesce",
            [
              "get",
              "Tieluokka"
            ],
            4
          ],
          [
            "literal",
            [
              1
            ]
          ]
        ]
      ],
      "layout": {
        "line-join": "round",
        "line-cap": "round"
      },
      "paint": {
        "line-color": "rgb(235, 235, 235)",
        "line-width": [
          "interpolate",
          [
            "exponential",
            1.5
          ],
          [
            "zoom"
          ],
          3,
          0.7,
          5,
          1,
          7,
          1.6,
          10,
          3.2
        ]
      }
    },
    {
      "id": "rajat-aluemeri",
      "type": "line",
      "source": "nls",
      "source-layer": "rajat",
      "filter": [
        "==",
        [
          "get",
          "Kohdeluokk"
        ],
        82100
      ],
      "layout": {
        "line-join": "round"
      },
      "paint": {
        "line-color": "#000000",
        "line-width": 0.6,
        "line-opacity": 0.3,
        "line-dasharray": [
          1,
          3
        ]
      }
    },
    {
      "id": "rajat-maakunta",
      "type": "line",
      "source": "nls",
      "source-layer": "rajat",
      "filter": [
        "all",
        [
          "==",
          [
            "get",
            "Kohdeluokk"
          ],
          84115
        ],
        [
          "any",
          [
            "in",
            [
              "get",
              "maakunta_a"
            ],
            [
              "literal",
              [
                "01",
                "02",
                "05",
                "07",
                "08",
                "09",
                "21"
              ]
            ]
          ],
          [
            "in",
            [
              "get",
              "maakunta_b"
            ],
            [
              "literal",
              [
                "01",
                "02",
                "05",
                "07",
                "08",
                "09",
                "21"
              ]
            ]
          ]
        ]
      ],
      "layout": {
        "line-join": "round"
      },
      "paint": {
        "line-color": "#000000",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          3,
          1,
          5,
          1.2,
          10,
          1.6
        ],
        "line-dasharray": [
          1,
          1
        ]
      }
    },
    {
      "id": "rajat-valtakunta",
      "type": "line",
      "source": "nls",
      "source-layer": "rajat",
      "filter": [
        "==",
        [
          "get",
          "Kohdeluokk"
        ],
        84111
      ],
      "layout": {
        "line-join": "round"
      },
      "paint": {
        "line-color": "#000000",
        "line-width": 1.2
      }
    },
    {
      "id": "kaupungit",
      "type": "circle",
      "source": "nls",
      "source-layer": "nimisto",
      "filter": [
        "all",
        [
          "in",
          [
            "get",
            "placetype"
          ],
          [
            "literal",
            [
              4010125,
              3010105
            ]
          ]
        ],
        [
          "all",
          [
            "==",
            [
              "get",
              "scalerelev"
            ],
            8000000
          ],
          [
            "in",
            [
              "get",
              "spelling_fin"
            ],
            [
              "literal",
              [
                "Maarianhamina",
                "Turku",
                "Hämeenlinna",
                "Helsinki",
                "Lahti",
                "Kouvola",
                "Lappeenranta"
              ]
            ]
          ]
        ]
      ],
      "paint": {
        "circle-radius": 2.2,
        "circle-color": "#1a1a1a",
        "circle-stroke-color": "#ffffff",
        "circle-stroke-width": 1
      }
    },
    {
      "id": "nimet-asutus",
      "type": "symbol",
      "source": "nls",
      "source-layer": "nimisto",
      "filter": [
        "all",
        [
          "in",
          [
            "floor",
            [
              "/",
              [
                "get",
                "placetype"
              ],
              1000000
            ]
          ],
          [
            "literal",
            [
              3,
              4
            ]
          ]
        ],
        [
          "all",
          [
            "==",
            [
              "get",
              "scalerelev"
            ],
            8000000
          ],
          [
            "in",
            [
              "get",
              "spelling_fin"
            ],
            [
              "literal",
              [
                "Maarianhamina",
                "Turku",
                "Hämeenlinna",
                "Helsinki",
                "Lahti",
                "Kouvola",
                "Lappeenranta"
              ]
            ]
          ]
        ]
      ],
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "spelling_swe"
          ],
          [
            "get",
            "spelling_fin"
          ],
          [
            "get",
            "spelling_sme"
          ],
          [
            "get",
            "spelling_smn"
          ],
          [
            "get",
            "spelling_sms"
          ]
        ],
        "symbol-sort-key": [
          "-",
          0,
          [
            "+",
            [
              "get",
              "scalerelev"
            ],
            [
              "get",
              "textsize"
            ],
            [
              "*",
              1000,
              [
                "coalesce",
                [
                  "get",
                  "Asukasluok"
                ],
                0
              ]
            ]
          ]
        ],
        "text-padding": 0,
        "text-max-width": 8,
        "text-font": [
          "literal",
          [
            "Barlow Semi Condensed Medium"
          ]
        ],
        "text-letter-spacing": 0.05,
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5,
          [
            "match",
            [
              "get",
              "scalerelev"
            ],
            8000000,
            14,
            4500000,
            12,
            2000000,
            11,
            1000000,
            10.5,
            10
          ],
          10,
          [
            "match",
            [
              "get",
              "scalerelev"
            ],
            8000000,
            20,
            4500000,
            17,
            2000000,
            15,
            1000000,
            14,
            13
          ]
        ],
        "text-allow-overlap": true,
        "text-justify": "auto",
        "text-variable-anchor-offset": [
          "match",
          [
            "get",
            "spelling_fin"
          ],
          "Maarianhamina",
          [
            "literal",
            [
              "top-left",
              [
                0.35,
                0
              ]
            ]
          ],
          "Turku",
          [
            "literal",
            [
              "bottom-left",
              [
                0.35,
                0
              ]
            ]
          ],
          "Hämeenlinna",
          [
            "literal",
            [
              "bottom-right",
              [
                -0.35,
                0
              ]
            ]
          ],
          "Helsinki",
          [
            "literal",
            [
              "top-left",
              [
                0.35,
                0
              ]
            ]
          ],
          "Lahti",
          [
            "literal",
            [
              "bottom",
              [
                0,
                -0.35
              ]
            ]
          ],
          "Kouvola",
          [
            "literal",
            [
              "top-left",
              [
                0.35,
                0
              ]
            ]
          ],
          "Lappeenranta",
          [
            "literal",
            [
              "bottom",
              [
                0,
                -0.35
              ]
            ]
          ],
          [
            "literal",
            [
              "bottom-left",
              [
                0.35,
                0
              ]
            ]
          ]
        ]
      },
      "paint": {
        "text-color": "#1a1a1a",
        "text-halo-color": "rgba(255, 255, 255, 0.85)",
        "text-halo-width": 2,
        "text-halo-blur": 1
      }
    },
    {
      "id": "kaupungit-tila",
      "type": "symbol",
      "source": "nls",
      "source-layer": "nimisto",
      "filter": [
        "all",
        [
          "in",
          [
            "get",
            "placetype"
          ],
          [
            "literal",
            [
              4010125,
              3010105
            ]
          ]
        ],
        [
          "all",
          [
            "==",
            [
              "get",
              "scalerelev"
            ],
            8000000
          ],
          [
            "in",
            [
              "get",
              "spelling_fin"
            ],
            [
              "literal",
              [
                "Maarianhamina",
                "Turku",
                "Hämeenlinna",
                "Helsinki",
                "Lahti",
                "Kouvola",
                "Lappeenranta"
              ]
            ]
          ]
        ]
      ],
      "layout": {
        "icon-image": "townspot",
        "icon-size": 0.6,
        "icon-allow-overlap": true,
        "icon-padding": 0
      },
      "paint": {
        "icon-opacity": 0
      }
    }
  ],
  "sprite": "https://dzr34plfemya.cloudfront.net/assets/sprites/v4/light"
}
