RouteRenderer
Summary
Create a Google Map extension used for rendering a Route.
Constructor
aeris.maps.gmaps.route.RouteRenderer
Syntax
aeris.maps.gmaps.route.RouteRenderer
-
opt_options
Summary
Parameters:
-
opt_options
Object=-
path
PolylineOptions=Options for rendering a path's polyline.
-
offPath
PolylineOptions=Options for rendering a path's polyline When the path is not following directions. Defaults to the same as a path following directions, but with a strokeColor of '#dd0000' (Crimson Red).
-
waypoint
WaypointOptions=Options for a rending a waypoint's icon.
-
selectedWaypoint
WaypointOptions=Options for rendering a selected waypoint's icon. Defaults to the same as a non-selected waypoint, but with a different different color icon.
-
map
Map
-
Item Index
Methods
Properties
Events
Methods
bindStylesToWaypointState_
Syntax
bindStylesToWaypointState_
-
waypoint
Summary
Parameters:
-
waypoint
Waypoint
delegateEventsForWaypoint_
Syntax
delegateEventsForWaypoint_
-
waypoint
Summary
Parameters:
-
waypoint
Waypoint
destroy
Syntax
destroy
()
Summary
Close and clean up the RouteRenderer instance.
eachWaypoint_
Syntax
eachWaypoint_
-
callback
Summary
Iterate through waypoints in this.routeViews_.
Parameters:
-
callback
FunctionCalled with the rendered waypoint.
eraseRoute
Syntax
eraseRoute
-
route
Summary
Erases a single route from the map
proxyWaypointEvents_
Syntax
proxyWaypointEvents_
-
waypoint
Summary
Parameters:
-
waypoint
Waypoint
rememberWaypoint_
Syntax
rememberWaypoint_
-
waypoint
Summary
Parameters:
-
waypoint
Waypoint
renderRoute
Syntax
renderRoute
-
route
Summary
Render all waypoints in a route.
Parameters:
-
route
Route
renderWaypoint
Syntax
renderWaypoint
-
waypoint
Summary
Render a new Waypoint on the map.
Parameters:
-
waypoint
WaypointThe Waypoint to be rendered.
setMap
Syntax
setMap
-
map
Summary
Sets the map on which to render routes, and renders all existing routes on the map.
Parameters:
-
map
Map
setStylesForWaypoint_
Syntax
setStylesForWaypoint_
-
waypoint
Summary
Parameters:
-
waypoint
Waypoint
Properties
map_
Syntax
map_
?aeris.maps.Map
private
Summary
The map on which to render the route.
offPathStyles_
Syntax
offPathStyles_
PolylineOptions
protected
Summary
pathStyles_
Syntax
pathStyles_
PolylineOptions
protected
Summary
renderedWaypoints_
Syntax
renderedWaypoints_
Array.Summary
selectedWaypointStyles_
Syntax
selectedWaypointStyles_
WaypointOptions
protected
Summary
waypointStyles_
Syntax
waypointStyles_
WaypointOptions
protected
Summary
{Boolean=} draggable Whether to allow drag events on the icon. Defaults to true.
Syntax
{Boolean=} draggable
Whether to allow drag events on the icon.
Defaults to true.
String=
Summary
{number=} strokeWeight Stroke weight, in pixels. Defaults to 3.
Syntax
{number=} strokeWeight
Stroke weight, in pixels.
Defaults to 3.
String=
Summary
Events
marker:click
Syntax
marker:click
Summary
Event Payload:
-
latLon
aeris.maps.LatLon -
waypoint
aeris.maps.gmaps.route.Waypoint
marker:dragend
Syntax
marker:dragend
Summary
Event Payload:
-
latLon
aeris.maps.LatLon -
waypoint
aeris.maps.gmaps.route.Waypoint
path:click
Syntax
path:click
Summary
Event Payload:
-
latLon
aeris.maps.LatLon -
waypoint
aeris.maps.gmaps.route.WaypointThe waypoint to which the path belongs (at the end of the path).