AppendReverseRouteCommand
Summary
Adds a reversed verions of the route waypoints to the route, omitting the last waypoints.
AKA "Out-and-Back"
Eg.
A --- B * C >>> D
Becomes:
A --- B C >>> D <<< C B --- A
Constructor
aeris.maps.gmaps.route.command.AppendReverseRouteCommand
Syntax
aeris.maps.gmaps.route.command.AppendReverseRouteCommand
(
-
route
-
opt_options
Summary
Parameters:
-
route
Route -
opt_options
Object=-
routeReverser
RouteReverser
-
Item Index
Methods
Properties
Methods
appendReverseWaypointsToRoute_
Syntax
appendReverseWaypointsToRoute_
()
private
Summary
clearUndoState_
Syntax
clearUndoState_
()
private
Summary
Remove internal references to the pre-execution state of the route.
execute_
Syntax
execute_
()
Summary
getReverseWaypoints_
Syntax
Summary
getReverseWaypointsWithoutFurthest_
Syntax
Summary
removeAppendedWaypointsFromRoute_
Syntax
removeAppendedWaypointsFromRoute_
()
private
Summary
Remove waypoints from the route which were appended by the command execution.
saveUndoState_
Syntax
saveUndoState_
()
private
Summary
Save the pre-execution state of the route.
undo_
Syntax
undo_
()
Summary
Properties
routeReverser_
Syntax
routeReverser_
aeris.gmaps.route.commands.helpers.RouteReverser
private
Summary
Helper object for reversing route waypoints.
waypointsOrig_
Syntax
waypointsOrig_
?Array.Summary
Waypoints state before command execution.