Skip to content

spatial-monorepo


spatial-monorepo / core/src / FloorPlanImageLayer

Function: FloorPlanImageLayer()

FloorPlanImageLayer(__namedParameters): null

Defined in: packages/core/src/components/FloorPlanImageLayer.tsx:50

Null-rendering React component that overlays a raster floor-plan image on a MapLibre GL JS map using a WebGL custom layer.

Must be mounted inside a <SpatialProvider> / <SpatialMap> tree.

Parameters

__namedParameters

FloorPlanImageLayerProps

Returns

null

Example

tsx
<SpatialMap mapStyle="...">
  <FloorPlanImageLayer
    instanceId="lobby"
    imageUrl="https://cdn.example.com/lobby.png"
    homography={[1,0,0, 0,1,0, 0,0,1]}
    opacity={0.8}
  />
</SpatialMap>

Released under commercial licensing.