Class TravelNotesViewer

This class is the entry point of the viewer.
See theTravelNotesViewer for the one and only one instance of this class.

Source : file main/travelNotesViewer/TravelNotesViewer.js at line 38

Constructor

new TravelNotesViewer ( )

The constructor

Source : file main/travelNotesViewer/TravelNotesViewer.js at line 67

Public methods

addReadOnlyMap ( travelUrl, addLayerToolbar )

This method load the TravelNotes viewer 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/travelNotesViewer/TravelNotesViewer.js at line 79

Parameters

Name Type Description
travelUrl String

The url of the TaN file to open

addLayerToolbar Boolean

A bollean indicating when the map layer toolbar must be visible

Private properties

#travelNotesLoaded : Boolean

Guard to avoid a second upload

Source : file main/travelNotesViewer/TravelNotesViewer.js at line 45

Private methods

async #loadDistantTravel ( travelUrl )

Load a travel from the server

Source : file main/travelNotesViewer/TravelNotesViewer.js at line 52

Parameters

Name Type Description
travelUrl String

The url of the TaN file to open