UI
The UI API lets you interact with the Qatium UI.
sendMessage()
Allows the plugin to communicate with its UI panel.
Method signature
Parameters
message: T
: an arbitrary message to be sent to the UI. Check the documentation of structuredClone to verify what can be sent.
Example
Send a message to the UI panel
isMapView()
Returns true
if map view mode is active, or false
if it isn’t.
Method signature
isSynopticView()
Returns true
if synoptic view mode is active, or false
if it isn’t.
Method signature
isPanelOpen()
Returns true
is the plugin’s panel is open, or false
if it isn’t.
Method signature
openPanel()
Opens the plugin’s panel.
Method signature
closePanel()
Closes the plugin’s panel.
Method signature
isPluginVisible()
Returns true
if the plugin’s overlay is visible, or false
if it isn’t.
Method signature
isMapLayerVisible()
Returns true
if the layer for the AssetType
is visible in the map.
Method signature
getLanguage()
Returns a string representing the ISO 639 language code of the user’s preferred language in the browser. Currently supports Spanish and English.