nrenner / brouter-web

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

Highlighting of "Track Grade 1" includes non-tracks with `tracktype=grade1` #768

Open sjakobi opened 1 year ago

sjakobi commented 1 year ago

Example: http://brouter.de/brouter-web/#map=17/51.10385/11.87692/osm-mapnik-german_style,Waymarked_Trails-Cycling&lonlats=11.881145,51.102801;11.875609,51.10503

If I click on "Unclassified" in the "Analyse" side bar, the highway=unclassified is highlighted correctly:

image

However when I want to highlight the "Track Grade 1" sections, the highway=unclassified sections are surprisingly included:

image

Indeed this specific highway=unclassified has a tag tracktype=grade1. It's not a highway=track though, so I think this is a bug in the highlighting logic.

rkflx commented 1 year ago

Thanks for the excellent bug report. The minimal example, screenshots and the spot-on description were really helpful in determining the cause and thus a fix. PR incoming.