Class FileLoader

This class load a file from the computer disk and display the travel

Source : file core/FileLoader.js at line 46

Constructor

new FileLoader ( )

The constructor

Source : file core/FileLoader.js at line 144

Public methods

mergeLocalGpxFile ( fileContent )

Merge the content of a gpx file with the curently displayed Travel

Source : file core/FileLoader.js at line 232

Parameters

Name Type Description
fileContent String

The gpx file content to merge

mergeLocalTrvFile ( fileContent )

Merge the content of a TaN file with the currently displayed Travel

Source : file core/FileLoader.js at line 241

Parameters

Name Type Description
fileContent String

The TaN file content to merge

openLocalGpxFile ( fileContent )

Open a local file and display the content of the file

Source : file core/FileLoader.js at line 153

Parameters

Name Type Description
fileContent String

The xml content of the selected file

openLocalTrvFile ( fileContent )

Open a local file and display the content of the file

Source : file core/FileLoader.js at line 175

Parameters

Name Type Description
fileContent String

The json content of the selected file

Private methods

#display ( )

Display the travel and fires event for updating the map and the UI

Source : file core/FileLoader.js at line 52

#mergeTravel ( mergedTravel )

Merge a Travel with the curently displayed Travel

Source : file core/FileLoader.js at line 206

Parameters

Name Type Description
mergedTravel Travel

The travel to merge