Class Garmin.MapController
Object
|
+--Garmin.MapController
- class
Garmin.MapController
Garmin.MapController
Defined in GoogleMapController.js
|
Constructor Summary |
Garmin.MapController(<String> mapString)
Google implmentation of the MapController.
|
Garmin.MapController
Garmin.MapController(<String> mapString)
Google implmentation of the MapController.
Parameters:
mapString - id of element to place map in
addMarker
void addMarker(point)
addMarkerWithIcon
void addMarkerWithIcon(point, icon)
Adds a marker to the point and icon specified
addStartFinishMarkers
void addStartFinishMarkers(track)
Adds a marker to the point and icon specified
addTrack
void addTrack(track, color)
this.usePositionMarker determines if the position marker should be placed
when a track is added. if true, then it is added, false than it is not
addWayPoint
void addWayPoint(waypoint)
centerAndScale
void centerAndScale(lat, lon, scale)
checkMoveMap
void checkMoveMap(currentIndex)
drawTrack
void drawTrack(points, color)
See:- MapController#drawTrack Problem is that Google Maps dies when you hit near 500 points, so we have to ensure that we create fewer than that for the track. Also creates the point arrays that define the track. These arrays will be longer than the drawn ones because they need to be more precise.
findAZoomLevel
Object findAZoomLevel(points)
initialize
Object initialize(mapString)
Initializes the player with the map and controller
Parameters:
mapString - is the id of the map this is controlling
moveMarkers
void moveMarkers(index)
setOnBounds
void setOnBounds(bounds)
toString
Object toString()
Documentation generated by
JSDoc on Mon Apr 16 11:23:41 2007