spatial-monorepo / core/src / BuildingPMTilesSource
Function: BuildingPMTilesSource()
BuildingPMTilesSource(
__namedParameters):ReactElement<unknown,string|JSXElementConstructor<any>> |null
Defined in: packages/core/src/components/CompoundComponents.tsx:390
BuildingPMTilesSource mounts a per-building vector PMTiles source into the MapLibre map.
Lifecycle:
- Mount: validates URL, then calls addSource('pmtiles-{buildingId}', { type: 'vector', url })
- Unmount: removeSource('pmtiles-{buildingId}')
- style.load: re-add source (style swap clears all sources)
- URL change: logs a warning — source is NOT replaced (MapLibre sources are stable)
PRD F2 requirement.
Parameters
__namedParameters
Returns
ReactElement<unknown, string | JSXElementConstructor<any>> | null
