Floor Plan SDK enables you to create interactive, customizable floor plan models embedded in your website using JavaScript or TypeScript
// initialize the floor plan engine
const floorPlan = new FloorPlanEngine({ container })
// load a floor plan
await floorPlan.loadFloorById(floorId, {
publishableAccessToken
})
// get the first work space
const [workSpace] = floorPlan.getSpaces({
where: { category: 'work' }
})
// zoom to it with a 2 m margin and a 500 ms animation
if (workSpace) {
floorPlan.zoomToElement(workSpace.id, 2, 500)
}











