Comments (4)
@michaelwemoto I tried to reproduce the issue and am able to toggle between miles and kilometres. Please provide the steps you made to trigger this issue. Also, which browser and version were you using?
from flattestroute.
simply loaded the page, I'm running Fedora, using Google Chrome Version 49.0.2623.108 (64-bit).
That was the fastest response I have seen on github! Especially on a project you published two years ago, well done! I've cloned and modified the bootstrap layout a little too, increasing the elevation / slope graphs to full width, could you point me to where I can increase the detail of the elevation / slope charts? Currently planning a 500Km trip from Brighton (UK) to Arlon, Belgium... amazing tool! would be handy to have a function to say 'split this route into 4 even days taking into consideration elevation / climbs etc'...
from flattestroute.
switching to Kilometers gives me a float to three decimal places, Miles there are no decimals, same number though... I should mention I'm working on a netbook, not the widest screen width
from flattestroute.
OK, I see the issue now. In regions where the unit of distance measurement is metric, the search defaults to km, but for regions with imperial measurement, it defaults to miles. I deployed a fix for that. Now the distance measurement is based on what is selected on the page.
The elevation chart code is in main.js lines 191-233. Slope chart code is lines 234-272.
Feel free to make any additional changes and send me a pull request if you would like it integrated into the page.
from flattestroute.
Related Issues (12)
- No way to share routes! HOT 2
- Bridges HOT 3
- Images Directory HOT 1
- License? HOT 1
- Colored lines don't work on Mac HOT 3
- Please Change Color Choices HOT 2
- Page too wide on iPhone after location entered.
- Empty white space at bottom of page on initial load
- Error handling
- How to add API key? HOT 1
- Google Maps don't load in single instance mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flattestroute.