nrenner / brouter-web

Web client for BRouter, a routing engine based on OpenStreetMap
https://brouter.de/brouter-web/
MIT License
352 stars 66 forks source link

Missing elevation data in quality coding freezes the map layer #501

Open gerion0 opened 2 years ago

gerion0 commented 2 years ago

Some routes in Norway (I guess if they belong to a ferry line where some keys are missing) freeze the map layer. You cannot drag it with the mouse anymore and clicking in it does not work.

An example is this link: https://brouter.m11n.de/#map=12/60.0736/5.4358/CyclOSM,Waymarked_Trails-Cycling,Smoothness,route-quality&lonlats=5.436859,60.161993;5.335922,59.942872&profile=m11n-gravel Also, the track remains gray.

For ferry connections in denmark I see no problem, also the heightdata of the ferry line is shown.

Reproduced with Firefox and Qutebrowser (QtWebEngine/Blink).

mjaschen commented 2 years ago

Seems like a bug with the route quality color coding.

Workaround until someone finds the time to fix it: Disable the route color coding, see screenshot for the button state which works fine.

20220516T095016-lifa7 .

nrenner commented 2 years ago

This because of missing elevation data above 60° north and also occurs with the old version on brouter.de, so not related to recent straight line changes.

I had the same root error with straight lines, but not so easy to patch because the relevant method is in private context, so better fixed by making a PR (and probably forking).