The JMap NG Configuration extension allows you to write Javascript code that will be executed automatically when JMap NG is opened for a given project.
It therefore allows you to perform several actions or configurations that are not available in JMap Admin and that would normally require custom extensions, scripts or configurations.
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.