Class: LimbMarkerPlacesFactory

lucid.maps.limbs. LimbMarkerPlacesFactory

Manages {lucid.maps.limbs.Limb}s for a set of markers.This class will create the google.maps.Marker instance on the map as well as the associated LIMB.

new LimbMarkerPlacesFactory(options)

Parameters:
Name Type Description
options lucid.maps.limbs.LimbMarkerPlacesFactoryOptions The factory options.
Source:

Methods

add(position, title, placeReference) → {lucid.maps.limbs.Limb}

Add a new marker and a LIMB to the map.The map instance and label styling are set in the options passed into the manager's constructor.
Parameters:
Name Type Argument Description
position google.maps.LatLng The location to be marked.
title string The name/title of the location. Used as the title of the marker created on the map.
placeReference string <optional>
Optionally associated the marker with a place using the place reference.
Source:
Returns:
The limb that has been created.
Type
lucid.maps.limbs.Limb

addCustomised(customisedMarkerOptions, customisedLimbOptions, placeReference) → {lucid.maps.limbs.Limb}

Add a new marker and a LIMB to the map.The map instance and label styling are set in the options passed into the manager's constructor.
Parameters:
Name Type Argument Description
customisedMarkerOptions google.maps.MarkerOptions Selected settings of the marker to be overriden from the options passed into the constructor.
customisedLimbOptions lucid.maps.limbs.LimbOptions Selected settings of the LIMB to be overriden from the options passed into the constructor.
placeReference string <optional>
Optionally associate the marker with a place using the place reference.
Source:
Returns:
The limb that has been created.
Type
lucid.maps.limbs.Limb

zoomToAll(zoomOptions)

Zoom and pan the map so that all markers are in view.You can optionally specify additional locations to be included in the map view by setting LatLng in the options parameter.
Parameters:
Name Type Description
zoomOptions object
Properties
Name Type Argument Description
additionalLocations google.maps.LatLng[] <optional>
Locations, in addition to the markers, which should be kept in view when the map view is changed.
Source: