Skip to content

numbered markers - #137

Merged
Janekdererste merged 9 commits into
masterfrom
106_numbered_markers
Oct 7, 2021
Merged

Janekdererste merged 9 commits into
masterfrom
106_numbered_markers

Conversation

@Janekdererste

Copy link
Copy Markdown
Collaborator

fixes #106

@karussell

karussell commented Oct 5, 2021 •

Copy link
Copy Markdown
Member

This is really great, thanks a lot!

I'm currently testing it locally and it works like expected except of the following things:

  • when I add too many via points I can no longer access the remaining buttons of the sidepanel - the locations should get a scrollbar when screen is too small (?)
  • when I load this route I get a short error message "errorResults.hints undefined" in the panel (and multiple times in the logs: TypeError: errorResult.hints is undefined). And sometimes the error message even stays.
  • it seems I cannot add more than 3 via points via right click: it is grayed out

Janekdererste added 2 commits October 5, 2021 15:39
* Only submit route request from QueryStore.ts if querypoints AND routingProfile are set
@Janekdererste

Copy link
Copy Markdown
Collaborator Author

when I add too many via points I can no longer access the remaining buttons of the sidepanel - the locations should get a scrollbar when screen is too small (?)

Tried to fix the other two points. This one is not so trivial, since the search input and the route results live in the same panel. At the moment the search input has a fixed (intrinsic) size and pushes the route results to the bottom. The route results are scrollable then. Have to think about a good solution for this.

@Janekdererste

Copy link
Copy Markdown
Collaborator Author

And I have to fix some unit tests of course 🙄

@karussell

Copy link
Copy Markdown
Member

At the moment the search input has a fixed (intrinsic) size and pushes the route results to the bottom. The route results are scrollable then.

Ah, I see. And could we give the points a maximum height of 50% or e.g. 5 via points and then after this it should start scrolling and stop pushing down the route result?

@Janekdererste

Copy link
Copy Markdown
Collaborator Author

And could we give the points a maximum height of 50% or e.g. 5 via points

Sounds good.

Janekdererste added 3 commits October 7, 2021 11:43
…ected. This is not very nice, but also an edge case I guess.

Also make the marker icons on collapsed search view smaller
@Janekdererste
Janekdererste merged commit 8af21de into master Oct 7, 2021
@Janekdererste
Janekdererste deleted the 106_numbered_markers branch October 7, 2021 13:32
@karussell

Copy link
Copy Markdown
Member

Again, really nice work 🎉

@easbar

easbar commented Oct 17, 2021

Copy link
Copy Markdown
Member

Very nice 👍

@karussell karussell changed the title 106 numbered markers numbered markers Oct 17, 2021
ZeroGxMax pushed a commit to minhhpkp/graphhopper-maps that referenced this pull request Nov 12, 2024
* Add marker svg from fontawesome. Which can display numbers for via markers

* Display markers next to address inputs

* use markers in instructions as well

* use markers for small layout as well

* * Check whether error response from api has hints
* Only submit route request from QueryStore.ts if querypoints AND routingProfile are set

* Allow more than 5 points in total

* Make the sidebar scroll the search box if too many via points are selected. This is not very nice, but also an edge case I guess.
Also make the marker icons on collapsed search view smaller

* fix unit tests

* actually test that the routing request is only issued if a routing profile is set as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Numbered markers

3 participants