
/**
 * @author Timo Paul (mail[at]timopaul[dot]com)
 * @copyright by timopaul[dot]com
 * @since Thursday, 27th March 2008
 * 
 * some functions to show some plylines in diffrent maps
 */

/**
 * Array of all points from some routes as GLatLng-Object
 * @var Array
 */
var points = [];

/**
 * some global GMap2
 * @var GMap2
 */
var map = [];

/**
 * some GPolyline to display the routes
 * @var GPolyline
 */
var polyline = [];

/**
 * removes all overlays from the map
 */
function clearMap(mid) {
	map[mid].clearOverlays();
}
		
/**
 * draw the route on the map
 */
function reloadPolyline(mid) {
	polyline[mid] = new GPolyline(points[mid], "#ff0000", 2);
	map[mid].addOverlay(polyline[mid]);			
}
