function renderPath(decodedPath, map, color){
    var latlngs = new google.maps.MVCArray();
    for (var i = 0; i < decodedPath.length; ++i) {
        var newLocation = new google.maps.LatLng(decodedPath[i].lat(), decodedPath[i].lng());
        latlngs.push(newLocation);
    }

    var displayPath = createDisplayPath(map, color);
    displayPath.setPath(latlngs);
}
//renders the path on the map

renders the path on the map
renders the path on the map
function renderPath(decodedPath, map, color){
    var latlngs = new google.maps.MVCArray();
    for (var i = 0; i < decodedPath.length; ++i) {
        var newLocation = new google.maps.LatLng(decodedPath[i].lat(), decodedPath[i].lng());
        latlngs.push(newLocation);
    }
    var displayPath = createDisplayPath(map, color);
    displayPath.setPath(latlngs);
}
function renderPath ( decodedPath , map , color ) { var latlngs = new google . maps . MVCArray ( ) ; for ( var i = 0 ; i < decodedPath . length ; ++ i ) { var newLocation = new google . maps . LatLng ( decodedPath [ i ] . lat ( ) , decodedPath [ i ] . lng ( ) ) ; latlngs . push ( newLocation ) ; } var displayPath = createDisplayPath ( map , color ) ; displayPath . setPath ( latlngs ) ; }
renders the path on the map
renders the path on the map