MarkerTracker

This ulitily displays directional indicators for "important" markers on that are out of your maps view.

class MarkerTracker

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

Constructor

Constructor Description
MarkerTracker(map, marker, 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. There is no constructor for this class. Instead, this class is instantiated as a javascript object literal.

Properties

Properties Type Description
color String Color of the arrow. The default value is "#ff0000".
iconScale Number Scales the icon size by this value, 0 = no icon. The default value is 0.6.
length Number length of the arrow. The default value is 20.
opacity Number opacity of the arrow. The default value is 0.8.
padding Number The padding between the arrow and the edge of the map. The default value is 25.
panEvent String The GMarker event name that triggers a quick zoom to the tracked marker. The default value is "click".
quickPanEnabled Boolean Setting this value to false will disable the quick pan feature. The default value is true.
updateEvent String The GMap2 event name that triggers the arrows to update. The default value is "move".
weight Number Thickness of the lines that make up the arrows. The default value is 20.