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 54

Constructor

new TravelNotes ( )

The constructor

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

Public getters and setters

readonly get map : LeafletObject

The Leaflet map object

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

readonly get overpassApiUrl : String

The overpassApi url to use by plugins

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

readonly get version : String

TheTravelNotes version

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

Public methods

addProvider ( providerClass )

This method add a provider. Used by plugins.

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

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 77

Parameters

Name Type Description
travelUrl String

The url of the TaN file to open

addToolbarsMenusUIs ( latUrl, lonUrl )

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 104

Parameters

Name Type Description
latUrl null or Number

The lat found in the url parameters

lonUrl null or Number

The lon found in the url parameters

showInfo ( info )

Show an info, using theErrorsUI. Used by plugins.

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

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 61