Giter VIP home page Giter VIP logo

Comments (4)

Hard-Loader avatar Hard-Loader commented on July 1, 2024

I've taken a closer look at what's going on. It's an easy change to make new markers add to the list rather than over-writing the last value. Line 204 in /src/index.js currently reads as "if (length === 1) length = length + 1;" changing that to "if (length > 0) length = length + 1;" will add a new entry for each click on the map.

I think that's more intuitive behaviour than the way it works at the moment.

from osrm-frontend.

mjjbell avatar mjjbell commented on July 1, 2024

Subsequent clicks always update the second waypoint, whether or not extra waypoint spaces have been added or selected. This does not seem like expected behaviour. I would expect each subsequent click to add a marker after the currently selected list entry.

I agree, this does feel unintuitive. Your suggestion makes sense to me.

from osrm-frontend.

robinsonkwame avatar robinsonkwame commented on July 1, 2024

Note: if you copy and paste another address and enter it into an empty via point and press enter you can add more than a stop and start. Very odd but it is what it is.

from osrm-frontend.

datendelphin avatar datendelphin commented on July 1, 2024

I think the main intended "work flow" for via points is dragging the route. But it makes sense to just add waypoints with each click.

from osrm-frontend.

Related Issues (20)

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.