Renders directions obtained from the DirectionsService
.
Access by calling const {DirectionsRenderer} = await google.maps.importLibrary("routes")
. See
https://developers.google.com/maps/documentation/javascript/libraries.
Adds the given listener function to the given event name. Returns an
identifier for this listener that can be used with
google.maps.event.removeListener
.
Binds a View to a Model.
Gets a value.
Returns the renderer's current set of directions.
Returns the map on which the DirectionsResult
is rendered.
Returns the panel <div>
in which the
DirectionsResult
is rendered.
Returns the current (zero-based) route index in use by this
DirectionsRenderer
object.
Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.
Sets a value.
Set the renderer to use the result from the
DirectionsService
. Setting a valid set of directions in this
manner will display the directions on the renderer's designated map
and panel.
This method specifies the map on which directions will be rendered. Pass
null
to remove the directions from the map.
Change the options settings of this DirectionsRenderer
after
initialization.
This method renders the directions in a <div>
. Pass
null
to remove the content from the panel.
Set the (zero-based) index of the route in the
DirectionsResult
object to render. By default, the first
route in the array will be rendered.
Sets a collection of key-value pairs.
Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.
Removes all bindings.
Generated using TypeDoc
Renders directions obtained from the
DirectionsService
.Access by calling
const {DirectionsRenderer} = await google.maps.importLibrary("routes")
. See https://developers.google.com/maps/documentation/javascript/libraries.