Once you embed the URL, the required Vizpad will be loaded.
Components of the embedding URL
vizpadId - the ID of the Vizpad to be embedded
tabId - As per the tabID specified in the embedding URL, the current tab will be set.
datasetId - the ID of the dataset to which the Vizpad belongs
Connecting with Tellius
The embedding app needs to send a message INITIALIZE to connect with Tellius.
Tellius validates and responds with TELLIUS_INITIALIZED message as an acknowledgment.
After receivingTELLIUS_INITIALIZED message, the required filters can be applied.
The following is a sample code to connect with Tellius:
As furnished in the code above, we use window.postMessage for communication between Tellius and the embedding app (two-way communication). The messages which are sent to Tellius from the embedding app are included in telliusFrame.postMessage(). With the help of the function postMessage, required actions can be performed.
To enable this communication and to receive messages, the embedding app needs to have eventListener. For every point clicked, or area selected/highlighted in the chart, Tellius will send a message to the embedding app.
Structure of a Vizpad
Each Vizpad consists of one or more tabs. Each tab can have multiple Viz. A Viz is a chart widget, and it is a component of a Vizpad. The following sample code shows the structure of a Vizpad and a Viz.
Utmost, a Vizpad can have 10 tabs, and a tab can have 25 Viz.