It is indeed off topic :) , but I will answer it here as it is related.
If Jan vB's file was also a default.render.xml instead of a derived file,
that would explain why your change is now gone. This means that you could
copy Jan vB's file back, but that would mean that the changes done to the
default.render.xml would be lost again.
That's exactly the reason why you should make a derived file and not a copy
of the default.render.xml.
All colors are defined by there hexadecimal RGB values. This means 6
"digits" like #00FFFF . This means "no red, full green and full blue".
If you want transparency you have to add a hexadecimal value in front of
it, which makes it an 8 "digit" value: 00 for full transparency and FF for
opaque.
The current value for the gpx color is#B400FFFF, The B4 value means that it
is close to opaque.
I assume that Jan used a much lower value like 99 or so. Please also keep
in mind that with more transparency, a lower value, also the brilliance of
the other colors is reduced giving a more "washed out" pale effect.
In this case I would make a derived render file like gpxcolor.render.xml,
containing something like:
<?xml version="1.0" encoding="utf-8"?>
<renderingStyle name="gpxcolor" depends="default" defaultColor="#f1eae4"
version="1">
<renderingAttribute name="gpxColor"> <!-- deprecated -->
<case attrColorValue="#b400ffff"/>
</renderingAttribute>
<renderingAttribute name="gpx">
<case strokeWidth="7:6" cap="ROUND">
<case nightMode="true" color="#b4b319ff"/>
<case additional="routePoints=true" pathEffect="6_5" color="#b400ffff"/>
<case color="#b400ffff"/>
</case>
</renderingAttribute>
</renderingStyle>
Note that I used both the old deprecated gpxcolor value as well as the new
gpx attribute.
Play with (reduce) the b4 value until you are satisfied.
Note also that when selecting a new render file it is displayed
immediately, but upon changes of the a render file, as mentioned in the
above posts, that you really need to close OsmAnd by using a task manager
or reboot your phone/device to get the wanted effect.
Harry
Post by P WatHi Harry.
If this question is off topic please let me know so I can raise a new one.
The solid purple route line obscures the road/track/path which is about to
be followed. This is a real nuisance because you cannot make your own
judgement about whether it is suitable (surface/speed, etc).
Last December Jan van Bekkum provided a file to generate a route line
which did not obscure the route. This was really useful but the "recent"
Osmand update reverted to solid purple route line.
Is your info about rendering relevant to this issue, or should I
re-install Jan vB's files?
Thanks
PaulW
==============
Post by Harry van der WolfThe default.xml is more or less a template.
You can also create derived render files where only parts are changed
instead of modifying the default.render.xml. It's even better as
changes/additions/fixes to the default.render.xml are also propagated to
your derived render file.
If you take a look at
https://github.com/osmandapp/OsmAnd-resources/tree/master/rendering_styles,
you see that only the default.render.xml is a "complete" file. All the
others are derivatives and only describe what's changed from the default.
This "derivation" is reflected in the top line of those render files.
The default.render.xml has <renderingStyle name="default" depends=""
defaultColor="#f1eae4" version="1">
As you can see it depends on nothing.
If I take any of the others, for example the UniRS, you see in the top line
<renderingStyle name="UniRS" depends="default" defaultColor="#f1eae4"
version="1.2">
It depends on the default.render.xml (not the template).
Harry
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.