Class RouteEditor

This class contains methods fot Routes creation or modifications See theRouteEditor for the one and only one instance of this class

Source : file core/RouteEditor.js at line 48

Constructor

new RouteEditor ( )

The constructor

Source : file core/RouteEditor.js at line 54

Public methods

addRoute ( )

This method add a route to the Travel and, if no other route is beind edited, start the edition of this new route

Source : file core/RouteEditor.js at line 63

cancelEdition ( )

This method cancel the route edition

Source : file core/RouteEditor.js at line 247

chainRoutes ( )

This method recompute the distances for all the chained routes and their notes

Source : file core/RouteEditor.js at line 195

editRoute ( routeObjId )

This method start the edition of a route

Source : file core/RouteEditor.js at line 81

Parameters

Name Type Description
routeObjId Number

The objId of the route to edit.

hideRoute ( routeObjId )

This method hide a route on the map

Source : file core/RouteEditor.js at line 351

Parameters

Name Type Description
routeObjId Number

The objId of the Route to show

hideRoutes ( )

This method hide all the routes on the map

Source : file core/RouteEditor.js at line 388

printRouteMap ( routeObjId )

This method show the PrintRouteMapDialog and then print the maps

Source : file core/RouteEditor.js at line 316

Parameters

Name Type Description
routeObjId Number

The objId of the Route for witch the maps must be printed

removeRoute ( routeObjId )

This method removes a route from the travel

Source : file core/RouteEditor.js at line 153

Parameters

Name Type Description
routeObjId Number

The objId of the Route to remove.

routeProperties ( routeObjId )

This method show the RoutePropertiesDialog

Source : file core/RouteEditor.js at line 282

Parameters

Name Type Description
routeObjId Number

The objId of the Route for witch the properties must be edited

saveEdition ( )

This method save the edited route

Source : file core/RouteEditor.js at line 229

saveGpx ( routeObjId )

This method save the route to a gpx file

Source : file core/RouteEditor.js at line 187

Parameters

Name Type Description
routeObjId Number

The objId of the Route to save.

showRoute ( routeObjId )

This method show a route on the map

Source : file core/RouteEditor.js at line 334

Parameters

Name Type Description
routeObjId Number

The objId of the Route to show

showRoutes ( )

This method shows all the routes on the map

Source : file core/RouteEditor.js at line 367