function parseLinestringRoadtoLineCoords(LineStringArray){
	var lineCoordsArray = new Array();
	for (i = 0;i < LineStringArray.length - 1;i++)
	{
		lineCoordsArray = lineCoordsArray.concat(
							calcStraightLine(
								convertEPSG3857toScreenXY(LineStringArray[i][0],LineStringArray[i][1]),
								convertEPSG3857toScreenXY(LineStringArray[i+1][0],LineStringArray[i+1][1])
								)
							)
	}
	//console.log(lineCoordsArray);
	return lineCoordsArray;
}
//combine all those lines together.
combine all those lines together.
combine all those lines together .
function parseLinestringRoadtoLineCoords(LineStringArray){
	var lineCoordsArray = new Array();
	for (i = 0;i < LineStringArray.length - 1;i++)
	{
		lineCoordsArray = lineCoordsArray.concat(
							calcStraightLine(
								convertEPSG3857toScreenXY(LineStringArray[i][0],LineStringArray[i][1]),
								convertEPSG3857toScreenXY(LineStringArray[i+1][0],LineStringArray[i+1][1])
								)
							)
	}
	return lineCoordsArray;
}
function parseLinestringRoadtoLineCoords ( LineStringArray ) { var lineCoordsArray = new Array ( ) ; for ( i = 0 ; i < LineStringArray . length - 1 ; i ++ ) { lineCoordsArray = lineCoordsArray . concat ( calcStraightLine ( convertEPSG3857toScreenXY ( LineStringArray [ i ] [ 0 ] , LineStringArray [ i ] [ 1 ] ) , convertEPSG3857toScreenXY ( LineStringArray [ i + 1 ] [ 0 ] , LineStringArray [ i + 1 ] [ 1 ] ) ) ) } return lineCoordsArray ; }
combine all those lines together.
combine all those lines together .
//console.log(lineCoordsArray);