Class Garmin.MapController
Garmin.MapController
Defined in: GoogleMapController.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Garmin.MapController((String))
Accepts Garmin.Series objects and draws them on a Google Map.
|
| Method Attributes | Method Name and Description |
|---|---|
|
addMarker(latitude, longitude)
Add an icon to a point.
|
|
|
addMarkerWithIcon(latitude, longitude, (GIcon))
Adds a marker to the point with the icon specified
|
|
|
Add start and finish markers to a track
|
|
|
centerAndScale((Number), (Number), (Number))
Set the center point and zoom level of the map.
|
|
|
createNearestValidLocationPoint(series, index, incDirection)
Creates a GLatLng for the sample in the series closest to the index with a valid location (lat and lon).
|
|
|
drawTrack((String))
Draw track on map.
|
|
|
Draw waypoint on map.
|
|
|
findAZoomLevel((Array))
Calculates minimum bounding box for an set of points.
|
|
|
setOnBounds((GLatLngBounds))
Set the bounding box on the map.
|
|
|
toString()
String representation of map.
|
Class Detail
Garmin.MapController((String))
Accepts Garmin.Series objects and draws them on a Google Map.
- Parameters:
- (String)
- mapString id of element to place map in
Method Detail
addMarker(latitude, longitude)
Add an icon to a point.
- Parameters:
- {Number} latitude
- of marker
- {Number} longitude
- of marker
addMarkerWithIcon(latitude, longitude, (GIcon))
Adds a marker to the point with the icon specified
- Parameters:
- {Number} latitude
- of marker
- {Number} longitude
- of marker
- (GIcon)
- icon to add at the point
addStartFinishMarkers()
Add start and finish markers to a track
- Parameters:
- (Garmin.Series)
- The series to add markers to
centerAndScale((Number), (Number), (Number))
Set the center point and zoom level of the map.
- Parameters:
- (Number)
- Latitude of the center point
- (Number)
- Longitude of the center point
- (Number)
- Zoom level
createNearestValidLocationPoint(series, index, incDirection)
Creates a GLatLng for the sample in the series closest to the index with a valid location (lat and lon).
- Parameters:
- series
- - The series to search through.
- index
- - The index to start searching from.
- incDirection
- - The direction to travel for the search.
- Returns:
- A GLatLng of the nearest valid location sample found.
drawTrack((String))
Draw track on map.
- Parameters:
- (Garmin.Track)
- The track to draw
- (String)
- Color in RGB Hex format, default: "#ff0000"
drawWaypoint()
Draw waypoint on map.
- Parameters:
- (Garmin.Series)
- series containing a waypoint to add to the map
findAZoomLevel((Array))
Calculates minimum bounding box for an set of points.
- Parameters:
- (Array)
- The array of points to find a zoom level for
setOnBounds((GLatLngBounds))
Set the bounding box on the map.
- Parameters:
- (GLatLngBounds)
- bounding box for the
toString()
String representation of map.
- Returns:
- (String)