Zivi / FlattestRoute

Flattest Route - Google Maps directions with elevation info
MIT License
169 stars 48 forks source link

Colored lines don't work on Mac #10

Open minism opened 10 years ago

minism commented 10 years ago

MacBook Pro Safari and Chrome colored lines don't show up on map, but they work on windows.

Zivi commented 10 years ago

Hi Josh, I just tried to replicate the issue on my MacBook Pro in Safari and in Chrome and the colors are working for me. Can you give me more details about the issue? Are there any error messages in your javascript console? Zivi

minism commented 10 years ago

Sorry for underspecifying, I took a look at it more closely. It only happens if the page is loaded with the same source and destination point--Probably a stupid use case, I know, but we were using it this way to empirically discover running routes that would be flat.

Example: http://www.flattestroute.com/?from=1231+Market+Street%2C+San+Francisco%2C+CA%2C+United+States&to=1231+Market+Street%2C+San+Francisco%2C+CA%2C+United+States&travelMode=Bicycling&measurementMode=miles

The javascript error is "Uncaught InvalidValueError: in property path: fewer than 2 LatLngs "

minism commented 10 years ago

(The idea was to drag one of the endpoints around and glance at the generated path)