How To Loop Through Google Maps API's Travel Mode
I am attempting to use JavaScript to get a set of directions for driving, walking and bicycling from the Google Maps JavaScript API by looping through the google.maps.TravelMode pr
Solution 1:
the callback of $.each
has two arguments, key and value, you must use the 2nd argument(currently you try to access google.maps.TravelMode.0
, google.maps.TravelMode.1
, google.maps.TravelMode.2
):
$.each(methods, function(key, method){/**/}
Post a Comment for "How To Loop Through Google Maps API's Travel Mode"