Enable directions on map. e.g., origin, destination, draggable, waypoints, etc
Requires: map directive
Restrict To: Element
Attributes:
Name | Type | Description |
---|---|---|
<DirectionsRendererOptions> |
String | Any DirectionsRendererOptions, https://developers.google.com/maps/documentation/javascript/reference#DirectionsRendererOptions |
<DirectionsRequest |
String | Options> Any DirectionsRequest options, https://developers.google.com/maps/documentation/javascript/reference#DirectionsRequest |
Example
Example:
<map zoom="14" center="37.7699298, -122.4469157">
<directions
draggable="true"
panel="directions-panel"
travel-mode="{{travelMode}}"
waypoints="[{location:'kingston', stopover:true}]"
origin="{{origin}}"
destination="{{destination}}">
</directions>
</map>