The / root route will check whether incoming requests come from a mobile platform using the mobile-detect node module. If provided with an access token (required for private applications), the backend will assemble a website template (desktop or mobile) and script bundle.
The client interface consists of two containers. The control container which is on the left (desktop) or a slider at the bottom (mobile) and the map container.
The control container has a section for layers and (selected) locations. Layers and locations are displayed as expandable drawers. The map control contains data attribution and a button array.
If enabled, a gazetteer control will be displayed on top of the layer control (desktop) or at the top of the map control (mobile).
xyz_entry is the entry point in the script bundle. The client interface is written as a collection of ES6 modules which must be imported by the browser. A webpack bundle will provided for browser which do not support dynamic ES6 module imports.
The client application initialization flow is as follows:
Import _xyz which holds all application utils, controls and parameter as well as the client workspace.
Import token module and renew the temporary token provided with the application template.
Initialise hooks provided as URL query parameter.
Initialise the current locale.
Initialise the map control based on the locale and hooks.
Initialise the layers control.
Initialise the locations control.
Initialise the gazetteer control.
Initialise the locate control.