This is documentation of an archived release.
For documentation on the current version, please check Knowledge Base.
For documentation on the current version, please check Knowledge Base.
Example : Load a publication
This example assumes you have successfully embedded the component and 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(<server>); client.setCredentials(<username>,<password>); client.loadPublication(<publicationName>);
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
Last modified:: 2019/03/25 11:36