class MarkerTracker

This class will display directional indicators for markers as they move out of a maps view.

Constructor

Constructor Description
MarkerTracker(marker, map, opts?) Creates a MarkerTracker for the given marker and displays it on the map as needed.

Methods

Methods Return Value Description
disable() none Disables the marker tracker.
enable() none Enables the marker tracker.

class MarkerTrackerOptions

This class represents optional arguments to the MarkerTracker constructor. It has no constructor, but is instantiated as object literal.

Properties

Properties Type Description
iconScale Number Scales the icon size by this value, 0 = no icon. The default value is 0.6.
padding Number The number of pixels between the arrow and the edge of the map. The default value is 25.
color String Specifies the color of the arrow. The default value is '#ff0000'.
weight Number Thickness of the lines that make up the arrows. The default value is 20.
length Number Specifies the length of the arrow. The default value is 20.
opacity Number Specifies the opacity of the arrow. The default value is 0.8.
updateEvent String This parameter changes the GMap2 event name that triggers the arrows to update, ( i.e. using 'moveend' reduces processing when using many MarkerTrackers).The default value is 'move'.
panEvent String This parameter specifies a GMarker event name that triggers a quick pan to the tracked marker. The default value is 'click'.
quickPanEnabled Boolean Setting this value to false will disable the quick pan described above. The default value is true.