Loader for the app. Load all the json files needed (config, translations, map layers...) and add event listeners to the document
An error message used when loading the json files
The language in the lng parameter of the url
The lat found in the lat url parameters
The lon found in the lon url parameters
The path of the app + TravelNotes ( first part of the json file names )
The url of the TaN file in the fil parameter of the url
Loading the config.json file from the server
Loading json files from the server
Loading map layers
Name | Type | Description |
---|---|---|
layersPromiseResult | Object | The response of the fetch for the TravelNotesLayers.json file |
Loading the NoteDialog config
Name | Type | Description |
---|---|---|
noteDialogPromiseResult | Object | The response of the fetch for the TravelNotesNoteDialogXX.json file |
defaultNoteDialogPromiseResult | Object | The response of the fetch for the TravelNotesNoteDialogEN.json file |
Loading the OsmSearch dictionary
Name | Type | Description |
---|---|---|
searchDictPromiseResult | Object | The response of the fetch for the TravelNotesSearchDictionaryXX.csv file |
defaultSearchDictPromiseResult | Object | The response of the fetch for the TravelNotesSearchDictionaryEN.csv file |
Loading translations
Name | Type | Description |
---|---|---|
translationPromiseResult | Object | The response of the fetch for the TravelNotesXX.json file |
defaultTranslationPromiseResult | Object | The response of the fetch for the TravelNotesEN.json file |
Read the url. Search a 'fil' parameter and a 'lng' parameter in the url.