Skip to main content

map-gl-offline

Save a map area to the browser, then use it with no connection.

Everything the map needs

Regions include the style, tiles, sprites, fonts and 3D models, so the map draws the same with no connection.

MapLibre and Mapbox GL

Works with both, including Mapbox Standard with its terrain and 3D buildings. Choose which optional features to save.

A control or an API

Add a ready-made control where people draw an area and download it, or call downloadRegion from your own code.

Accurate progress

One percentage that only moves forward, with exact counts for each phase, so people know how far along a download is.

Storage you can manage

See what's using space, set expiry dates, and clean up automatically before the browser runs out of room.

MBTiles in and out

Export regions to the standard SQLite format that QGIS and tippecanoe read, and import them back.