if (Garmin == undefined) var Garmin = {};
Garmin.Map = {
	activityAdded: function(line) {
	    player.mc.addActivity(line);
	},
	
	/**
	 * Just draws a line - doesn't add markers or anything of that nature
	 */
	addPolyline: function(line) {
		player.mc.addEncodedLine(line);
	},
	
	/**
	 * Flash calls this to let the controller know that the marker has moved
	 * @Inbound
	 */
	moveMarkers: function(lat, lon, index, activityNumber) {
	    player.mc.moveMarker(lat, lon, index, activityNumber);
	},
	
	/**
	 * Called when the activity contains no lat/lon information
	 */
	noMapData: function() {
		player.removeMap();
	}
};