This is documentation of an archived release.
For documentation on the current version, please check Knowledge Base.

Example : Hide the map.

This example assumes you have successfully embedded the component and validated the license.

Hide the map

The Orbit WebClient Component provides global functions to enable or disable the visibility of the Map or the Panorama components. By default both the Map and Panorama component are visible. After the publication is loaded, you can change this :

viewer.addEventListener(orbit.webclient.LoadPublicationEvent.SUCCESS,
    function(e)
    {
        client.setSetting("MapVisibility",false);
        client.setSetting("ViewerVisibility",true);
    });

While a Publication is being loaded, settings can be updated. Therefore it is best to set any custom settings after the publication is loaded. You can do so by waiting for the LoadPublicationEvent.SUCCESS event.

The ViewerVisibility setting applies to any viewer type used in the publication : Panorama or Oblique.

Result

 
Last modified:: 2019/03/25 11:36