Wayfinding
Show a route between two booths using selectRoute.
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: false,
onBoothClick: (e) => console.info(`Booth clicked: ${e.target.name}`),
onInit: (fp) => fp.selectRoute(['42-23', '101-12']),
},
);
</script>
</body>
</html>