osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.67k stars 1.02k forks source link

Extra option for contour line width doesn't work from custom rendering style in Android version (it works in iOS version) #20501

Open bobeeeze opened 3 months ago

bobeeeze commented 3 months ago

Description

We've created a rendering style for hiking in which we want an extra option to appear in the contour line widths. This appears in iOS but not in the Android version. If I make the modification directly in contourlines.addon.render.xml the option appears without any problem in the Android version too. But the intention is to include this option in the rendering style so that it isn't overwritten each time a new version of Osmand is installed.

Translated with DeepL.com (free version)

Steps to reproduce

https://github.com/OsmAnd-Rendering/Hiking/blob/main/Hiking.render.xml This is the rendering style. Install it and try

Actual result

We don't see the extra option "+" in the contour line width

Expected result

We should see the extra option "+" in the contour line width

Your Environment (required)

Android, osmand+

yuriiurshuliak commented 3 months ago

Please attach a video or screenshot showing the correct behavior and how it currently looks for you.

bobeeeze commented 3 months ago

With the modification in contourlines.addon.render.xml:

With the modification in hiking.render.xml

bobeeeze commented 3 months ago

To help you understand, I'd like to point out that if I change the width values for the Thick, Medium and Thin options in the hiking rendering style file, it works fine and the contour lines change thickness according to the values I've entered.

yuriiurshuliak commented 3 months ago

The bug has been reproduced. To reproduce it, import the custom rendering style Hiking.render.xml. Select it as the main map style, then open Contour Lines and choose the Contour line width option.

On iOS, you'll see the "+" option in list included in the rendering style. On Android, you'll see a standard list without the "+" option.

OsmAnd~ 4.9.0#2909m, released: 2024-08-06 OsmAnd 4.8.0.9

iOS Android