Git Product home page Git Product logo

Comments (4)

Zivi avatar Zivi commented on August 15, 2024

@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.

mhorne484 avatar mhorne484 commented on August 15, 2024

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.

mhorne484 avatar mhorne484 commented on August 15, 2024

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.

Zivi avatar Zivi commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.