Giter Club home page Giter Club logo

Comments (4)

Janekdererste avatar Janekdererste commented on August 16, 2024 1

I thought this would be nice, because with this input the order of the via points is clear.

Good point. I tried the dragging away from the current path and generating a new via point. It somehow didn't feel very intuitive to use. I think it would have to feel a little more like in google maps where there is a dot moving along the path when the mouse is moved along it. Implementing this felt like too much work for the 0.1 version and I'd like to check in about how to do it.

How do you determine the order?

Currently, via points are inserted on the last position before the destination point. If there are undefined via points (because the user has selected 'add point' in the search bar but not selected a point yet) the first undefined point is set, when 'via here' from the context menu is selected.

I had a look at the current graphhopper maps implementation of selecting via points and thought I should talk to you guys before I imlement anything more complicated than what is described above. Obviously someone has already thought about the problem and I didn't want to reinvent the wheel.

from graphhopper-maps.

Janekdererste avatar Janekdererste commented on August 16, 2024

This was solved in 8bbda9f and ec0842e .

Tested dragging the route for new via-Points but found it not very intuitive. One can now add markers by:

  • clicking on the map, which fills the currently available waypoints.
  • right-clicking and selecting from, to or via from a context menu. This logic adds via points if none are in the current search
  • Typing in a search box and selecting a geocoding result

from graphhopper-maps.

easbar avatar easbar commented on August 16, 2024

Tested dragging the route for new via-Points but found it not very intuitive.

Do you mean it is hard to implement or not useful? I thought this would be nice, because with this input the order of the via points is clear. Otherwise we have to 'guess' where (in which order) the new via point shall be inserted (i.e. before or after other via points). This is what we do currently. How do you determine the order?

from graphhopper-maps.

karussell avatar karussell commented on August 16, 2024

Implementing this felt like too much work for the 0.1 version and I'd like to check in about how to do it.

👍

btw: I think I saw this here:

https://github.com/Kasheftin/graphhopper-frontend

Or probably here (but there is no open source license associated):

https://github.com/Kasheftin/RoutePlanner
https://github.com/Kasheftin/route-planner-vue

from graphhopper-maps.

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.