Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTB route colour incorrect if 'network' is undefined #18658

Closed
watarat opened this issue Dec 2, 2023 · 2 comments
Closed

MTB route colour incorrect if 'network' is undefined #18658

watarat opened this issue Dec 2, 2023 · 2 comments

Comments

@watarat
Copy link

watarat commented Dec 2, 2023

Description

Have a case where the track colour doesn't reflect mtb:scale, or mtb:scale:imba correctly

Investigation of effects shows that adding the tag pair network=lcn seems to correct to expected colour

Steps to reproduce

Observe settings for Way: Ant Logic (313202038).

Where mtb:scale and mtb:scale:imba are set to 2 - with

Where mtb:scale and mtb:scale:imba are also set to 2

Actual result

However 'Ant Logic is rendered in pink (wrong) and 'DLS' is rendered in mauve (correct)

Expected result

Adding the tag Network=lcn seems to correct the colour to be the same (correct)

Your Environment (required)

OsmAnd Version: 4.5.10
Android/iOS version: Android 10
Device model: Blackview BV9900
Crash-Logs: ?
Map Style = Dessert

Testing done by Exporting a small area from an edit made in JOSM, and creating an obf file via OsmMapCreator.

@DmitryAlexei
Copy link
Contributor

OsmAnd~ 4.6.0#1135m, released: 2023-12-01
https://www.openstreetmap.org/way/313202038 and https://www.openstreetmap.org/way/298040855 coordinates -34.86980 138.82034

  • when only MTB routes (mtb scale) enabled (menu > configure map > MTB routes > mtb scale), these two ways are displayed the same in all map styles according to map legend (https://osmand.net/docs/user/map-legend/osmand#routes). Screenshot was made in OsmAnd (default) map style
  • when in addition to MTB routes, cycling routes are enabled (menu > configure map > cycle routes), the second route (Dirty little secrets) is rendered differently. This is probably because of incorrect tagging: Munns track https://www.openstreetmap.org/way/245154534 has joined the relation a week ago, and it is tagged differently, than DLS.

@watarat
Copy link
Author

watarat commented Dec 5, 2023

Ahh - thankyou - can now see my lack of understanding 🤔.
Having cycling routes enabled (menu > configure map > Cycle routes)
means that the Network->lcn tag has precedence over the mtb:scale (menu > configure map >Mountain bike routes)

I created some test segments to investigate, results are:
Having both Cycling and MTB enabled yields as below, - Colour overridden if Network defined.
image
Deselecting Cycling and having only MTB enabled - Colour is not modified by having Network defined.
image

Thankyou again for very accurate & helpful reply.

@vshcherb vshcherb closed this as completed Feb 1, 2024
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

No branches or pull requests

3 participants