Skip to content

spatial-monorepo


spatial-monorepo / core/src / BuildingPMTilesSourceProps

Interface: BuildingPMTilesSourceProps

Defined in: packages/core/src/components/CompoundComponents.tsx:348

Properties

buildingId

buildingId: string

Defined in: packages/core/src/components/CompoundComponents.tsx:353

Unique building identifier. The MapLibre source will be keyed as pmtiles-{buildingId}.


children?

optional children?: ReactNode

Defined in: packages/core/src/components/CompoundComponents.tsx:362


url

url: string

Defined in: packages/core/src/components/CompoundComponents.tsx:361

PMTiles URL (pmtiles:// or https://).

NOTE: Changing this prop at runtime does NOT hot-swap the source. Sources are stable for the lifetime of the component. To change the URL, unmount and remount the component (which triggers a map reload).

Released under commercial licensing.