Skip to main content

basemap

[
  "https://tiles.openfreemap.org/styles/dark",
  "#0c0c0c"
]
import { basemap } from "@sportsdataverse/sdvplot/maplibre";

const { style, background } = basemap("dark");
// in the browser: new maplibregl.Map({ container, style, center: [-96, 38], zoom: 3 })
[style, background];

Tags: docstring · basemap. All sdvplot examples.