Class AppLoaderViewer

Loader for the app. Load all the json files needed (config, translations, map layers...) and add event listeners.

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 43

Constructor

new AppLoaderViewer ( )

The constructor

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 264

Public methods

async loadApp ( )

Load the complete app

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 275

Private properties

#addLayerToolbar : Boolean

A flag indicating when the layer toolbar must be added

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 71

#language : String

The language in the lng parameter of the url

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 57

static #mapEditorViewer : MapEditorViewer

The mapEditorViewer

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 86

#originAndPath : String

The path of the app + TravelNotes ( first part of the json file names )

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 64

#travelUrl : String

The url of the TaN file in the fil parameter of the url

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 50

Private getters and setters

readonly static get #VIEWER_DEFAULT_ZOOM : Number

The dafault zomm factor

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 79

Private methods

#addEventsListeners ( )

Loading event listeners

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 92

async #loadConfig ( )

Loading the config.json file from the server

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 204

async #loadMapLayers ( )

Loading map layers

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 235

async #loadTranslations ( )

Loading translations

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 222

#loadTravelNotes ( )

Loading TravelNotes

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 248

#readURL ( )

Read the url. Search a 'fil' parameter, a 'lng' parameter and a 'lay' in the url.

Source : file main/travelNotesViewer/AppLoaderViewer.js at line 162