Class: DirectionsController

lucid.maps.limbs. DirectionsController

Controls behaviour for showing directions to a central destination from various travel points (a.k.a a "how to find us" map).The controller is configured with options for creating markers, limbs and directions.Transport links (origins of travel to the destination) are then added using the addTransportLink method. Customtravel options can be supplied to override the default options that were set via the constructor, allowingeach transport link to use a different icon, travel mode, etc.

new DirectionsController(options)

Parameters:
Name Type Description
options lucid.maps.limbs.DirectionsControllerOptions Options for the default behaviour of this controller.
Source:

Methods

Parameters:
Name Type Description
travelOptions lucid.maps.limbs.TransportLinkOptions Options to override the default options passed into the factory's constructor.
Source:
Returns:
The LIMB that was created for the new travel point.
Type
lucid.maps.limbs.Limb

<inner> defaultClickHandlerFactory(marker) → {function}

Parameters:
Name Type Description
marker google.maps.Marker The marker to create a click-handler for.
Source:
Returns:
A function that handles the click on that marker.
Type
function