Class: LimbMarkerFactory

lucid.maps.limbs. LimbMarkerFactory

Manages multiple lucid.maps.limbs.Limb.This provides a slight performance gain by refreshing multiple LIMBs within a single map-moved event handler.This class will also create the LIMB for you, and the associated google.maps.Marker instance too.

new LimbMarkerFactory(options)

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

Methods

add(position, title, placeReference)

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:

destroy()

Destroy this instance and any associated resources.This method should be called when the instance is no longer required.
Source:

getNumberOfMarkers() → {number}

Source:
Returns:
The total number of places being labelled (includes any labels currently being hidden).
Type
number

hide()

Temporarily hide the labels.This does not remove the LIMBs and markers, it just takes them off display.Call this if you hide the map element.
Source:

removeAll()

Remove all markers and LIMBs created by this manager.
Source:

show()

Re-display the labels after being hidden with a call to 'hide'.
Source:

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: