====== Example : Hide the map. ======
This example assumes you have successfully [[example_embed|embedded the component]] and [[example_checklicense|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 =====