This example assumes you have successfully embedded the component and validated the license.
When implementing an integration it may be useful to prevent the default startup location from being loaded. You may want to restore a previous location. This can be done quite easily using a setting.
Steps to take :
viewer.setSetting("ApplyStartupParametersOnLoad","false");
To load a publication, we must first configure which server to use, which credentials to use and load a publication using the setServer(), setCredentials() and loadPublication() methods.
If you don't specify credentials, the system will ask for them.
viewer.setServer("http://developer.orbitgt.com/service"); viewer.setCredentials("dev","dev"); viewer.loadPublication("Sint-Niklaas_31370");
viewer.addEventListener(orbit.webclient.LoadPublicationEvent.SUCCESS, function(e) { viewer.getPanorama().openViewerAtXY(133860,206211,"31370",{pan:180,tilt:20}); });
More on photo loading settings here : Example : Open photo.