Skip to content

No Overlay with Search Buttons

Hide the overlay but keep the search-filter buttons — clicking one opens the overlay on demand, and closing it returns to the buttons-only view. The same mode is available from the page URL: ?noOverlay=true&visibility[searchButtons]=true.

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: (fp) => {
            fp.setVisibility({ overlay: false, searchButtons: true });
          },
        },
      );
    </script>
  </body>
</html>

Open live example