Node Implementation


Our Node implementation is hosted on Gitlab and can be found here, along with additional installation instructions.

Note that the minimum version of Node required is 14.13.

Sample Project

We have prepared a sample project showing how to use the SDK within Node. It can be downloaded here.

Unzip the sample into a fresh directory, then run the following on the command line:
yarn upgrade
node sample.js

Command Samples

See the Headless Mode section for commands available as well as sample implementations.


Removing a map

The "destroy" function should be called when you wish to remove a map from a page e.g. if you have a tabbed UI, it should be called when the user clicks away from the tab if that content is going to be removed from the DOM. If it is simply hidden/shown it should not be called.