|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Garmin.MapController
Garmin.MapController
Defined in GoogleMapController.js
| Constructor Summary | |
Garmin.MapController(mapString)
Accepts Garmin.Series objects and draws them on a Google Map. |
|
| Method Summary | |
void
|
addMarker(<Number> latitude, <Number> longitude)
Add an icon to a point. |
void
|
addMarkerWithIcon(<Number> latitude, <Number> longitude, icon)
Adds a marker to the point with the icon specified |
void
|
addStartFinishMarkers(series)
Add start and finish markers to a track |
void
|
centerAndScale(lat, lon, scale)
Set the center point and zoom level of the map. |
Object
|
createNearestValidLocationPoint(series, index, incDirection)
Creates a GLatLng for the sample in the series closest to the index with a valid location (lat and lon). |
void
|
drawTrack(series, color)
Draw track on map. |
void
|
drawWaypoint(series)
Draw waypoint on map. |
Object
|
findAZoomLevel(points)
Calculates minimum bounding box for an set of points. |
void
|
initialize(mapString)
|
void
|
setOnBounds(bounds)
Set the bounding box on the map. |
Object
|
toString()
String representation of map. |
| Constructor Detail |
Garmin.MapController(mapString)
String - ) mapString id of element to place map in
| Method Detail |
void addMarker(<Number> latitude, <Number> longitude)
latitude - of marker
longitude - of marker
void addMarkerWithIcon(<Number> latitude, <Number> longitude, icon)
latitude - of marker
longitude - of marker
GIcon - ) icon to add at the point
void addStartFinishMarkers(series)
Garmin - .Series) The series to add markers to
void centerAndScale(lat, lon, scale)
Number - ) Latitude of the center point
Number - ) Longitude of the center point
Number - ) Zoom level
Object createNearestValidLocationPoint(series, index, incDirection)
series - - The series to search through.
index - - The index to start searching from.
incDirection - - The direction to travel for the search.
void drawTrack(series, color)
Garmin - .Track) The track to draw
String - ) Color in RGB Hex format, Garmin.MapController.prototype.default = "#ff0000";
void drawWaypoint(series)
Garmin - .Series) series containing a waypoint to add to the map
Object findAZoomLevel(points)
Array - ) The array of points to find a zoom level for
void initialize(mapString)
void setOnBounds(bounds)
GLatLngBounds - ) bounding box for the
Object toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||