Fork me on GitHub
Show:

AppendReverseRouteCommand

Extends aeris.maps.gmaps.route.command.AbstractRouteCommand

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:

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

getReverseWaypoints_

() Array.<Waypoint> private

Summary

Returns:

getReverseWaypointsWithoutFurthest_

Syntax

getReverseWaypointsWithoutFurthest_

() Array.<Waypoint> private

Summary

Returns:

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. private

Summary

Waypoints state before command execution.