Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1.12 KB

File metadata and controls

22 lines (13 loc) · 1.12 KB

optimaze-viewer-example

This is an example application for the optimaze-viewer library. It loads data from the Optimaze API using the OAuth 2 authorization code flow for authenticating API requests. An Optimaze account is required in order to log in. The application is written in TypeScript and uses Webpack for bundling.

If you are interested in creating a third-party application using Optimaze floor plans, please contact support@optimaze.net.

Demo

This app is hosted at https://optimazeviewerexample.azurewebsites.net/.

Usage

  1. Run yarn to install dependencies
  2. Run yarn start to start dev server

Alternatively, run yarn build to create a production build

Debugging

  1. If you get "not found" from the floorgraphics api call, the spacedata / floor images might be missing
  2. If you get "bad request" from authorization, check that your api-user (optimaze-viewer-example by defaul) has proper scope (space.read) and password auth flow enabled