Change "route" renderingAttibute based on a renderingProperty

38 views
Skip to first unread message

Everton Hermann

unread,
Jul 6, 2020, 9:53:49 AM7/6/20
to osm...@googlegroups.com
Hello,
I would like to know if it's possible to change the "route" renderingAttribute using a renderingProperty. For instance I would like to have an option to use larger arrow size.
It works fine if I use "nightMode" in place of "bigArrow", and I switch between night and day mode. But it doesn't work when I switch the new renderingProperty "bigArrow".

Best regards



<renderingStyle depends="Touring-view_(more-contrast-and-details).render" name="CycleTouring" defaultColor="#f1eae4" version="1"> <renderingProperty attr="bigArrow" name="Show Big Arrow" description="Show Big Arrow" type="boolean" possibleValues="" category="routes"/> <renderingAttribute name="route"> <case strokeWidth="10:6" color_3="#FFFFFF" strokeWidth_3="5:3"> <apply_if bigArrow="true" strokeWidth="16:16" strokeWidth_3="12:12"/> </case> </renderingAttribute> </renderingStyle>

cricri du lauragais

unread,
Jul 7, 2020, 3:22:07 AM7/7/20
to OsmAnd
the default render with comments:

<renderingAttribute name="route">
<!-- fluorescent: filter attrColorValue="#CCFF6600"/ -->
<!-- was badly visible on motorways: filter nightMode="false" attrColorValue="#960000FF"/ -->
<!-- color used for route line color -->
<!-- color_0 used for route line stroke color -->
<!-- color_2 used for route direction arrows -->
<!-- color_3 used for turn arrows on the route -->
<case color="#882a4bd1" strokeWidth="12:8" color_3="#ffde5b" color_2="#bfccff" strokeWidth_3="5:7">
<apply_if nightMode="true" color="#ffdf3d" color_2="#806f1f" color_3="#41a6d9" strokeWidth="9:8" color_0="#CCb29c2b" strokeWidth_0="12:8"/>
</case>
</renderingAttribute>

try strokeWidth_3 for arrow width

Everton Hermann

unread,
Jul 7, 2020, 3:41:44 AM7/7/20
to osm...@googlegroups.com
Thank you Cricri, 
But I was already able to change the width, what I'm unable to do is to select it based on a renderingProperty (like the ones for details/route/hide).
If you have any idea please let me know, but I'm afraid it's a bug.
Best regards
Everton

--
You received this message because you are subscribed to the Google Groups "OsmAnd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osmand/b953e4b0-c001-476c-b483-e38c9391fc33o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages