You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any documentation available for using the TerriaJS API?
I saw the following comment in the TerriaJS issue #2820, and wonder what "cross-window messages" are supported, and how I can use the TerriaJS API? I have looked around the TerriaJS GitHub repo and cannot find any documentation for the API.
From @kring
You can do lots of API-like stuff (enable particular catalog items, zoom to a particular location, etc.) by posting cross-window messages into an iframe. For more control, embed TerriaJS using a div rather than an iframe, and then you have full access to TerriaJS's javascript API.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there any documentation available for using the TerriaJS API?
I saw the following comment in the TerriaJS issue #2820, and wonder what "cross-window messages" are supported, and how I can use the TerriaJS API? I have looked around the TerriaJS GitHub repo and cannot find any documentation for the API.
From @kring
You can do lots of API-like stuff (enable particular catalog items, zoom to a particular location, etc.) by posting cross-window messages into an iframe. For more control, embed TerriaJS using a div rather than an iframe, and then you have full access to TerriaJS's javascript API.
Thanks!
Lisa
Beta Was this translation helpful? Give feedback.
All reactions