Repository navigation
basemapper v0.1.0
basemapper's first numbered release: MapLibre GL basemaps rendered headlessly, with a Rust core shared by R and Python. No browser, GPU, display server or GDAL.
Highlights
- MapLibre's look, headless. Vector styles are drawn by a CPU port of MapLibre GL JS's renderer, tested pixel by pixel against MapLibre GL JS (fills, lines, labels, icons, patterns, hillshade). Any fractional zoom and pixel ratio.
- One API in three languages. The same functions and arguments in R, Python and Rust:
basemap(),render_png(),render_svg(),render_array(),list_layers(),get_attribution(), ... - 82 named basemaps, including OpenFreeMap, Esri, CARTO, Stadia, MapTiler, USGS, and the Utah Geospatial Resource Center's vector basemaps (
UGRC.Lite,UGRC.Dark,UGRC.Hybrid,UGRC.Outdoors) and all 36 UGRC Discover layers (with a quad word). - Your own tiles: any MapLibre style, tile URLs, TileJSON, PMTiles, ArcGIS services, WMS and WMTS.
- True vector SVG with editable text and embedded fonts, for raster and vector basemaps.
- Under your plots: ggplot2 (
geom_basemap()), tmap (tm_basemap()), matplotlib (add_basemap()) and plotnine (geom_basemap()), rendered at the output resolution, in any CRS, with the provider's credit. - Stack and filter: several styles as one map; keep or drop labels and features (water, roads, parks, ...), across a stack as one basemap.
- A tile cache that looks after itself, within 250 MB by default.
Install
From GitHub (each compiles the Rust core: you need a Rust toolchain, and Rtools on Windows for R):
pak::pak("ar-puuk/basemapper/r-basemapper@v0.1.0")pip install "basemapper @ git+https://github.com/ar-puuk/basemapper@v0.1.0#subdirectory=py-basemapper"[dependencies]
basemapper-core = { git = "https://github.com/ar-puuk/basemapper", tag = "v0.1.0" }New since v0.0.6
- The tile cache deletes expired tiles and keeps within a size limit (250 MB;
tile_cache(max_size =)orBASEMAPPER_CACHE_MAX_SIZE), as CRAN asks;BASEMAPPER_CACHE_DIRsets one folder for R and Python. - Each package reports the version they share:
packageVersion("basemapper"),basemapper.__version__,basemapper_core::VERSION. - A root CHANGELOG.md, written from the commit history; earlier milestones are tagged
v0.0.1tov0.0.6.
Documentation: https://ar-puuk.github.io/basemapper/ · What changed in each package: R, Python · Full changelog: v0.0.6...v0.1.0