On Thursday, 6 September 2018 22:55:06 UTC+2, OA wrote: > > I always use my own rendering, correcting width of navigation track. It's > too wide to my taste, the track covers the whole street and I always reduce > its default width so I can see it inside streets. It was done by creating > small file AnyName.render.xml that I put in OsmAnd folder. Content of the > file is very simple: > <renderingStyle depends="OsmAnd" version="1"> > <renderingAttribute name="route"> > <case color="#882a4bd1" strokeWidth="5:5" color_3="#ffde5b" color_2= > "#bfccff" strokeWidth_3="2:1"> > <apply_if nightMode="true" color="#ffdf3d" color_2="#806f1f" color_3 > ="#41a6d9" strokeWidth="2:2" color_0="#CCb29c2b" strokeWidth_0="2:1"/> > </case> > </renderingAttribute> > </renderingStyle> > > It worked very well until OsmAnd was updated to 3.1. Now it doesn't see my > file, leaving me with only option - edit default.render.xml. First of all, > it's inconvenient - the file is big (currently 645 KiB). And second, every > new update overwrites this file. So, I have to go through the hassle of > editing it again and again... >
It is working, some of the built in rendering styles use the depends. Change it like this: <renderingStyle depends="OsmAnd" version="1"> <renderingProperty attr="appMode" name="Rendering mode" description="Map optimization for respective User Profile" type="string" possibleValues="browse map,car,bicycle,pedestrian"/> <renderingAttribute name="route"> <case color="#882a4bd1" strokeWidth="5:5" color_3="#ffde5b" color_2= "#bfccff" strokeWidth_3="2:1"> <apply_if nightMode="true" color="#ffdf3d" color_2="#806f1f" color_3= "#41a6d9" strokeWidth="2:2" color_0="#CCb29c2b" strokeWidth_0="2:1"/> </case> </renderingAttribute> </renderingStyle> Check, if you need to change depends="OsmAnd" to depends="default". -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.