Class TravelNotes

This class is the entry point of the application.

See theTravelNotes for the one and only one instance of this class

Source : file main/travelNotes/TravelNotes.js at line 53

Constructor

new TravelNotes ( )

The constructor

Source : file main/travelNotes/TravelNotes.js at line 66

Public getters and setters

readonly get map : LeafletObject

The Leaflet map object

Source : file main/travelNotes/TravelNotes.js at line 187

readonly get overpassApiUrl : String

The overpassApi url to use by plugins

Source : file main/travelNotes/TravelNotes.js at line 180

readonly get version : String

TheTravelNotes version

Source : file main/travelNotes/TravelNotes.js at line 194

Public methods

addProvider ( providerClass )

This method add a provider. Used by plugins.

Source : file main/travelNotes/TravelNotes.js at line 162

Parameters

Name Type Description
providerClass Class

The provider to add

async addReadOnlyTravel ( travelUrl )

This method load TravelNotes and open a read only map passed trought the url. This method can only be executed once. Others call will be ignored.

Source : file main/travelNotes/TravelNotes.js at line 76

Parameters

Name Type Description
travelUrl String

The url of the TaN file to open

addToolbarsMenusUIs ( )

This method load TravelNotes and open an empty read and write map. This method can only be executed once. Others call will be ignored.

Source : file main/travelNotes/TravelNotes.js at line 101

showInfo ( info )

Show an info, using theErrorsUI. Used by plugins.

Source : file main/travelNotes/TravelNotes.js at line 171

Parameters

Name Type Description
info String

The info to show

Private properties

#travelNotesLoaded : Boolean

Guard to avoid a second upload

Source : file main/travelNotes/TravelNotes.js at line 60