====== Example : Load a publication ====== This example assumes you have successfully [[example_embed|embedded the component]] and [[example_checklicense|validated the license]]. By default, the webclient displays a login panel where the user can select a URL, enter credentials and select a publication. This example demonstrates how you can bypass the login panel and load a publication directly. ===== Load a publication. ===== 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. client.setServer(); client.setCredentials(,); client.loadPublication(); Since version 11.1.3, several things are disabled by default when using the API : * The inventory tools are disabled. * The copy to clipboard function is disabled. * The "add wfs layer" function is disabled. * The map is disabled. ===== Result =====