Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 747 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 747 Bytes

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-package

Usage

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.smp

Start a server and open in the default browser.

smp view demotiles.smp --open