Skip to content

spatial-monorepo


spatial-monorepo / core/src / PROTOMAPS_LIGHT_STYLE

Variable: PROTOMAPS_LIGHT_STYLE

const PROTOMAPS_LIGHT_STYLE: object

Defined in: packages/core/src/styles/protomaps-light.ts:12

Issue #103 — Protomaps fallback style constant.

Exported as a named const for consumers who need a reference to the bundled style object (e.g. for inspection or comparison in tests).

NOTE: MapLibre mutates the style object it receives. Consumers who pass this directly to a MapLibre constructor should call getProtomapsLightStyle() from './protomapsLight' instead, which returns a fresh object on each call.

Type Declaration

glyphs

readonly glyphs: "https://protomaps.github.io/basemaps-assets/fonts/{fontstack}/{range}.pbf" = 'https://protomaps.github.io/basemaps-assets/fonts/{fontstack}/{range}.pbf'

layers

readonly layers: readonly [{ id: "background"; paint: { background-color: "#e8e0d8"; }; type: "background"; }, { id: "water"; paint: { fill-color: "#a8c8e8"; }; source: "protomaps"; source-layer: "water"; type: "fill"; }, { id: "roads"; paint: { line-color: "#ffffff"; line-width: 1.5; }; source: "protomaps"; source-layer: "roads"; type: "line"; }]

name

readonly name: "Protomaps Light" = 'Protomaps Light'

sources

readonly sources: object

sources.protomaps

readonly protomaps: object

sources.protomaps.attribution

readonly attribution: "© OpenStreetMap contributors" = '© OpenStreetMap contributors'

sources.protomaps.tiles

readonly tiles: readonly ["pmtiles:///{z}/{x}/{y}"]

sources.protomaps.type

readonly type: "vector" = 'vector'

sprite

readonly sprite: "" = ''

version

readonly version: 8 = 8

Released under commercial licensing.