2.0.0 • Published 1 year ago
styled-map-package v2.0.0
Styled Map Package
A Styled Map Package (.smp) file is a Zip archive containing all the resources needed to serve a Maplibre vector styled map offline. This includes the style JSON, vector and raster tiles, glyphs (fonts), the sprite image, and the sprite metadata.
Installation
Install globally to use the smp command.
npm install --global styled-map-packageUsage
Download an online map to a styled map package file, specifying the bounding box (west, south, east, north) and max zoom level.
smp download https://demotiles.maplibre.org/style.json \
--bbox '-180,-80,180,80' \
--zoom 5 \
--output demotiles.smpStart a server and open in the default browser.
smp view demotiles.smp --open