Skip to content

No Overlay with Background

No-overlay mode with a custom loading animation and blurred background image.

Code

html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
  </head>
  <body>
    <div id="floorplan" style="width: 100%; height: 100dvh"></div>
    <script type="module">
      import { load } from 'https://unpkg.com/@expofp/floorplan';
      load(
        { $ref: 'https://demo.expofp.com/manifest.json' },
        {
          element: document.querySelector('#floorplan'),
          noOverlay: true,
          onInit: () => {
            console.info('Map initialized');
          },
          onBoothClick: (e) => {
            console.info(`Booth clicked: ${e.target.name}`);
          },
        },
      );
    </script>
  </body>
</html>

Open live example