Getting Started
The Wayfinder 3.x API is mostly backward compatible with the 2x and 1.x versions.
As long as you are using the documented functions seen in Wayfinder Web API Reference, This module does not implement a UI. Documentation for our first-party UI can be found here.
Getting Started
Include the library from the CDN as follows:
<script src="https://cdn.wayfinder.acquiredigital.com/live/js-api/three.min.js"></script>
<script src="https://cdn.wayfinder.acquiredigital.com/live/js-api/wayfinderv2.js"></script>
<script type="module" src="https://cdn.wayfinder.acquiredigital.com/
live/js-api/three.module.min.js"></script>
<script type="module" src="https://cdn.wayfinder.acquiredigital.com/
live/js-api/wayfinderv2.module.js"></script>
Each instance of the map is then created as follows:
var wayfinderInstance = new Wayfinder(htmldiv_element, settings);
htmldiv_element: The HTML DIV where a CANVAS element will be created to render the map in. The canvas is created with a z-index=0. To place something over the top you will need to use a greater z-index. The map will override the DIV border and padding, setting them both to zero.
settings: Is optional, and will override the defaults and any map-specific server defaults as follows:
Note: All colours can be typed in as '#RRGGBB', {r:0,g:0,b:0}, or '#RGB' etc
Type Definitions
Type definitions will soon be available on NPM.