MapView

CODE SNIPPET

Here's an example on how to implement this in your html view:

HTML

<map-view situm-api-key="YOUR_SITUM_API_KEY" building-identifier="YOUR_BUILDING_IDENTIFIER" remote-identifier="YOUR_REMOTE_IDENTIFIER" />

ATTRIBUTES

situm-api-key
Your API Key to authenticate yourself in our plugin. You can manage out your Situm API Key in https://dashboard.situm.com/accounts/profile.
building-identifier
The identifier of the building you want to display on the map. You can manage this identifier with this guide https://situm.com/docs/sdk-cartography/#building-details.
remote-identifier
An identifier that allows you to remotely configure all map settings.
language
Choose the language that map-view will use to display its UI by specifying an ISO 639-1 code. You can also change the language by calling MapViewController.setLanguage(). Checkout the Situm docs to see the list of supported languages.
viewer-domain
A parameter that allows you to specify which domain will be displayed inside our webview. Default is https://map-viewer.situm.com

Methods

static onLoad(cb)

MapView was loaded. The MapViewController will be sent by the callback.
Parameters:
Name Type Description
cb function The callback that gives back the controller of this visual component.