Fork me on GitHub
Show:

ReverseRouteCommands

Summary

Reverses the order of waypoints and their direction in a route.

Constructor

aeris.maps.gmaps.route.commands.ReverseRouteCommands

Syntax

aeris.maps.gmaps.route.commands.ReverseRouteCommands

(
  • route
  • opt_options
)

Summary

Parameters:

Methods

clearUndoState_

Syntax

clearUndoState_

() private

Summary

Clear internal references to the pre-execution state of the route.

execute_

Syntax

execute_

()

Summary

getReverseWaypoints_

Syntax

getReverseWaypoints_

() Array.<Waypoint> private

Summary

Return waypoints in reverse order and direction.

Returns:

saveUndoState_

Syntax

saveUndoState_

() private

Summary

Save the pre-execution state of the route.

undo_

Syntax

undo_

()

Summary

validateRoute_

Syntax

validateRoute_

(
  • route
)
private

Summary

Parameters:

Properties

route_

Syntax

route_

aeris.maps.gmaps.route.Route protected

Summary

The Route the Waypoint will be added to.

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.