This ulitily displays directional indicators for "important" markers on that are out of your maps view.
This class will display directional indicators for markers as they move out of a maps view.
Constructor | Description |
---|---|
MarkerTracker(map, marker, opts?) |
Creates a MarkerTracker for the given marker and displays it on the map as needed. |
Methods | Return Value | Description |
---|---|---|
disable() |
None |
Disables the marker tracker. |
enable() |
None |
Enables the marker tracker. |
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 | 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 . |