brouter-web icon indicating copy to clipboard operation
brouter-web copied to clipboard

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

Open sjakobi opened this issue 2 years ago • 1 comments
trafficstars

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.

sjakobi avatar Aug 21 '23 09:08 sjakobi

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.

rkflx avatar Aug 22 '23 22:08 rkflx