OsmAnd-Rendering / Motorcycle

off road motorcycle render style and routing for OsmAnd Android and iOS
https://osmtopo.blogspot.com/2021/02/style-pour-osmand.html
GNU General Public License v3.0
30 stars 5 forks source link

Routing Line Color #3

Closed FriedelXT closed 2 years ago

FriedelXT commented 2 years ago

I wish that the routing color is in Magenta and transparent, that you can see the street under this:

( I mean not the planned route. I mean the guided route. That you cant edit in transparency)

IMG_5131

cricri-du-lauragais commented 2 years ago

i think you can modify this into enduro.render.xml file at line 113 ;) color="#336600ff" the 2 first digits are transparency (33) 00 are no transparency, ff are full transparency, 6 other digits are color in RVB

FriedelXT commented 2 years ago

Hi Christophe,

thank you very much for your answer. I tried some edits…..but no transparency comes. Can it be that it not works by <renderingAttribute name="route“> ?

cricri-du-lauragais commented 2 years ago

in OsmAnd there are several ambiguous terms for routing/trace etc when you calculate a route, it is a guiding route, you can change color/thickness/opacity in each profile when you record your route, you must have only the color assigned to the "tracks" layer when you display a gpx it has the color defined in the gpx file and if you want to modify it it takes necessarily the one of the layer "tracks".

FriedelXT commented 2 years ago

I only talk about guiding route. in osmand style we have this opacity. in all others not possible. And in osmand app you only can edit opacity in gpx and recorded "routes", what is a track. I think the coder of osmand have not the right wording.

a route is a collection of waypoints for guiding. the nav app calculate the way between this waypoints. a track is a collection of recorded waypoints. the nav app not calculate the way between this waypoints.

osmand app use the track for guiding, what is not optimal. so you have no stopovers. If you do an own route (for guiding), osmand app rebuild this to a track. only you do it "on the fly"....it works like a route. If you safe this route, it will be a track.

so....whatever.....if i change something woth colors in line 113, nothing change.

cricri-du-lauragais commented 2 years ago

for me with the last version of the android playstore, I have the choice in the profile I use to modify the "guidance" line, each time or permanently in the profile options ;) the one I defined in the style is applied by default, transparent blue thick enough like this ligne

cricri-du-lauragais commented 2 years ago

when i change line 113 by '<'case color_0="#00000000" strokeWidth_0="12" color="#3366ff00" strokeWidth="12" color_2="#00990099" strokeWidth_2="12" color_3="#999900ff" strokeWidth_3="8">' it look like this ligne2

FriedelXT commented 2 years ago

Cant do anything. no opacity... (iOS)

IMG_5143

FriedelXT commented 2 years ago

on second view to your pic I see 2 lines. the opacity one is the "gpx" line, and the full color (small) line is the guiding line. right?

FriedelXT commented 2 years ago

interesting: if I use this colornumber (from osmand.render), then it is work. But only this color. Tried some more. Crazy.

</renderingAttribute>

IMG_5144

cricri-du-lauragais commented 2 years ago

the help in the render file:

<!-- 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 -->

strokeWidth (strokeWidth_x) is the thickness into configuration option from profil you can only change color and thickness, the other elements remain as in the style chosen for the profile used

FriedelXT commented 2 years ago

I know. Its just other colors as #882a4bd1 not working opacity

cricri-du-lauragais commented 2 years ago

hello!

I just tried all the renders including hiking, CycloRoute and enduro. all have opaque colors for guidance with iOS. it's relatively recent because not long ago we had the possibility between opaque or transparent colors.

I think it is necessary to address the developers of the application

image

FriedelXT commented 2 years ago

Hi Christophe,

thank you very much for your answer. I tried some edits…..but no transparency comes. Can it be that it not works by <renderingAttribute name="route“> ?

Am 26.07.2022 um 09:29 schrieb Christophe @.***>:

i think you can modify this into enduro.render.xml file at line 113 ;) color="#336600ff" the 2 first digits are transparency (33) 00 are no transparency, ff are full transparency, 6 other digits are color in RVB

— Reply to this email directly, view it on GitHub https://github.com/OsmAnd-Rendering/Motorcycle/issues/3#issuecomment-1195111478, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASBPDB5OEWGWD7MMUJXKUF3VV6HVBANCNFSM54T2U5IQ. You are receiving this because you authored the thread.


Friedhelm Walldorf Riphausstrasse 11 D-45731 Waltrop

Mobil: +4915123509915 eMail: @.***