Class ProfileDialog extends NonModalBaseDialog

A float window containing a route profile

Source : file dialogs/profileDialog/ProfileDialog.js at line 43

Constructor

new ProfileDialog ( )

The constructor

Source : file dialogs/profileDialog/ProfileDialog.js at line 170

Public getters and setters

readonly get contentHTMLElements : Array of HTMLElement

An array with the HTMLElements that have to be added in the content of the dialog. Overload of the base class contentHTMLElements

Source : file dialogs/profileDialog/ProfileDialog.js at line 218

readonly get title : String

The title of the DialogControl. Overload of the base class get title

Source : file dialogs/profileDialog/ProfileDialog.js at line 231

Public methods

createContentHTML ( )

Create all the controls needed for the dialog. Overload of the base class createContentHTML

Source : file dialogs/profileDialog/ProfileDialog.js at line 185

onCancel ( )

Overload of the BaseDialog.onCancel ( ) method.

Source : file dialogs/profileDialog/ProfileDialog.js at line 192

setContent ( route )

Set the content of the dialog : heading, svg profile and ascent text

Source : file dialogs/profileDialog/ProfileDialog.js at line 130

Parameters

Name Type Description
route Route

The route for witch the profile will be displayed

setContentName ( route )

This method update the profile name. Also called when the user changes the route name with the RoutePropertiesDialog or when a waypoint is updated with the geocoder

Source : file dialogs/profileDialog/ProfileDialog.js at line 149

Parameters

Name Type Description
route Route

The route for witch the profile is displayed

show ( )

Show the dialog

Source : file dialogs/profileDialog/ProfileDialog.js at line 207

Private properties

#ascentDiv : HTMLElement

A div under the svg profile with ascent, descent and distance

Source : file dialogs/profileDialog/ProfileDialog.js at line 64

#markerObjId : Number

An objId for the position marker

Source : file dialogs/profileDialog/ProfileDialog.js at line 99

#nameDiv : HTMLElement

A div under the svg profile with the route name

Source : file dialogs/profileDialog/ProfileDialog.js at line 71

#routeObjId : Number

The displayed route objId

Source : file dialogs/profileDialog/ProfileDialog.js at line 106

#svg : SVGElement

The svg profile

Source : file dialogs/profileDialog/ProfileDialog.js at line 50

#svgContextMenuEL : SvgContextMenuEL

Contextmenu event listener

Source : file dialogs/profileDialog/ProfileDialog.js at line 78

#svgDiv : HTMLElement

The svg div

Source : file dialogs/profileDialog/ProfileDialog.js at line 57

#svgMouseLeaveEL : SvgMouseLeaveEL

Mouseleave event listener

Source : file dialogs/profileDialog/ProfileDialog.js at line 92

#svgMouseMoveEL : SvgMouseMoveEL

Mousemove event listener

Source : file dialogs/profileDialog/ProfileDialog.js at line 85

Private methods

#clean ( )

Remove all the content of the dialog and remove event listeners

Source : file dialogs/profileDialog/ProfileDialog.js at line 112