@deltabreen/maps
v0.1.0
Published
Maps by deltabreen for the browser: a MapLibre map on our tiles with the token handled for you. Flat plans, no overage, styles you own.
Readme
@deltabreen/maps
A MapLibre map on Maps by deltabreen tiles, with the token handled for you.
npm install @deltabreen/maps maplibre-glimport { createMap } from '@deltabreen/maps'
import 'maplibre-gl/dist/maplibre-gl.css'
const map = await createMap({ container: 'map', key: 'pk_…', style: 'meadow', center: [-6.26, 53.35], zoom: 11 })map is a maplibregl.Map. Use tokenUrl: '/map-token' instead of key when your own server holds a secret key.
When a plan is exhausted the map shows a small notice instead of failing; nothing is ever charged.
Docs: https://maps.deltabreen.eu/docs
