var path = new google.maps.Polyline({ path: coordinates, strokeColor: "#FF0000", strokeOpacity: 1.0, strokeWeight: 2 }); hardloopRoutePath.setMap(map);//test