RestoreViewState
This function will restore the previously saved state (using SaveViewState).
This function is primarily used in the following scenario:
- When the web app tab is hidden by the browser (for example when the browser is minimized, hidden, deactivated but the browser…), then this function can be called to save the current state
- When the tab is visible again and the connection has been lost, then the function can be called to restore the previous state.
See the Demo Example
Function
void RestoreViewState(animate: boolean)
Parameters
- animate: animate the camera to the previous camera state
Examples
SYM3.RestoreViewState(true);