Skip to content

spatial-monorepo


spatial-monorepo / theme/src / ProtomapsStyleOptions

Interface: ProtomapsStyleOptions

Defined in: packages/theme/src/index.ts:358

Options for buildProtomapsStyle.

Properties

tilesUrl

tilesUrl: string

Defined in: packages/theme/src/index.ts:372

PMTiles archive or vector tile source URL for the Protomaps basemap (e.g. pmtiles://https://your-cdn.example.com/basemap.pmtiles, or a {z}/{x}/{y} tile URL template).

There is deliberately no bundled default here: Protomaps' daily "build" snapshots (build.protomaps.com/YYYYMMDD.pmtiles) are retention-limited and expire, so a hardcoded date-stamped URL will eventually 404 in production. Callers must supply a source they control the lifecycle of — a self-hosted PMTiles archive built with @diginestai/pmtiles / pmtiles, a maintained CDN copy, or Protomaps' hosted tile API (see https://docs.protomaps.com).

Released under commercial licensing.