spatial-monorepo / core/src / BuildingPMTilesSource
Function: BuildingPMTilesSource()
BuildingPMTilesSource(
__namedParameters):ReactElement`<unknown,string|JSXElementConstructor<any>>\|null`
Defined in: packages/core/src/components/CompoundComponents.tsx:376
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}')
- 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`
