Configuration
Dernière mise à jour
Dernière mise à jour
K2 Geospatial 2024
The extension is configured in the JMap Admin project configuration page:
Open the NG Configuration tab.
Drop the javascript code that will be executed when opening, then save.
Once the javascript code is saved, activate the extension in the Extensions section of a project configuration page. Make sure the code is functional before activating the extension, otherwise errors may occur when opening JMap NG for current users of the project.
The following code adds an Atari logo and a base map from Geogratis. It also zooms to coordinates 45.630701447925134, -73.54322795543986 :
Example configuration to change the value of JMAP_OPTIONS.reportsBaseUrl based on a given URL.