"""
Graticule
=========

``GraticuleLayer`` draws meridians and parallels at a step given in
degrees. The map is framed on continental Europe via ``bbox``.
"""

from mappyng import Map, BasemapLayer, GraticuleLayer
from mappyng.data import load_europe

europe = load_europe()

# Continental Europe frame, in EPSG:3857 (the data CRS).
bbox = [-1400000, 4000000, 4700000, 11500000]

m = Map(europe, bbox=bbox, width=820, height="auto", facecolor="#cfe0ee")
m.add(GraticuleLayer(step=10.0, stroke="#9bb0c4"))
m.add(BasemapLayer())
m.title("Europe", subtitle="Graticule at a 10-degree step")
m.source("Basemap: Natural Earth")
m.render("graticule.svg")
