Occupancy Map Components
An embedded Occupancy Map Tool
Getting Started
Install
yarn add @wework/occupancy-map-components
Usage
import React from 'react'
import { SessionOccupancyMap } from "@wework/occupancy-map-components"
const ApplicationComponent = () => {
return (
<SessionOccupancyMap
configuration={{
appId: "appId",
appSecret: "appSecret",
baseUrl: "https://occupancy-api-staging.spacemob.co",
}}
buildingId="b308b94c-bca6-4318-b906-1c148f7ca183"
/>
)
}
Example
git clone git@github.com:WeConnect/occupancy-map-components.git
cd occupancy-map-components
yarn
yarn start:demo