Class TravelHTMLViewsFactory

This class creates HTMLElements for travels See theTravelHTMLViewsFactory for the one and only one instance of this class

Source : file viewsFactories/TravelHTMLViewsFactory.js at line 42

Constructor

new TravelHTMLViewsFactory ( )

The constructor

Source : file viewsFactories/TravelHTMLViewsFactory.js at line 178

Public methods

getTravelHTML ( classPrefix )

Gives an HTMLElement with the travel header, the travel notes, all the routes of the travel with route header, route notes, route maneuvers, route footer and travel footer

Source : file viewsFactories/TravelHTMLViewsFactory.js at line 189

Parameters

Name Type Description
classPrefix String

A string that will be added to all the className of the created HTMLElements

Returns

An HTMLElement with the complete travel
Type : HTMLElement

Private methods

#getTravelFooterHTML ( classPrefix )

Gives an HTMLElement with the Copyright notice and OSM attributions

Source : file viewsFactories/TravelHTMLViewsFactory.js at line 155

Parameters

Name Type Description
classPrefix String

A string that will be added to all the className of the created HTMLElements

Returns

An HTMLElement with the travel footer
Type : HTMLElement

#getTravelHeaderHTML ( classPrefix )

Gives an HTMLElement with the travel name, distance, ascent (if any), descent (if any) and a list with all the routes of the travel

Source : file viewsFactories/TravelHTMLViewsFactory.js at line 51

Parameters

Name Type Description
classPrefix String

A string that will be added to all the className of the created HTMLElements

Returns

An HTMLElement with the travel header
Type : HTMLElement