I would like to suggest, that the Track can be paint in different colours depending of the driven speed.
For example: blue for very slow, green is faster, yellow more fast, red is very fast and lila is the fastest. (like the rainbow)
Perhaps this feature should be able to deactivate, if someone don't like.
Perhaps the speed-Range should be configurable. If someone drive with the car needs other limits, than one, who only drive bicycle.
It will be awesome, if you can built in this Idea
Greets
Burkhard
Color of the Track depending on Speed
-
- Site Admin
- Posts: 3130
- Joined: Tue Feb 06, 2007 12:36 pm
Re: Color of the Track depending on Speed
Hi,
I'm not sure if it's that easy. Maybe this will be an optional feature. By default the colours should be solid to make distinction easier.
I'm not sure if it's that easy. Maybe this will be an optional feature. By default the colours should be solid to make distinction easier.
-
- Posts: 5
- Joined: Tue Jun 10, 2014 7:36 pm
Re: Color of the Track depending on Speed
This would be great!
I think it cannot be so difficult, to translate the speed in RGB-Values to draw the track.
Perhaps you easy can do so:
percent = actual_speed / configurated_max_speed * 100
if percent > 100 then percent = 100
select case percent
when 0 to 20 then set color = blue
when 20,1 to 40 then set color = green
when 40,1 to 60 then set color = orange
when 60,1 to 80 then set color = red
when 80,1 to 100 then set color = violett
or something like this
I think it cannot be so difficult, to translate the speed in RGB-Values to draw the track.
Perhaps you easy can do so:
percent = actual_speed / configurated_max_speed * 100
if percent > 100 then percent = 100
select case percent
when 0 to 20 then set color = blue
when 20,1 to 40 then set color = green
when 40,1 to 60 then set color = orange
when 60,1 to 80 then set color = red
when 80,1 to 100 then set color = violett
or something like this
-
- Site Admin
- Posts: 3130
- Joined: Tue Feb 06, 2007 12:36 pm
Re: Color of the Track depending on Speed
The problem is that the single segments are not drawn separately. Instead the whole track is passed to the Google Maps library which cares about drawing. I have to check if different colors in the same track are supported by this library.
-
- Posts: 5
- Joined: Tue Jun 10, 2014 7:36 pm
Re: Color of the Track depending on Speed
Today I found by random this picture here:
https://lh4.ggpht.com/kiGdte4ltl6McCP1v ... wXayQ=h900
This seems, google is able to paint tracks in multiple colors....
https://lh4.ggpht.com/kiGdte4ltl6McCP1v ... wXayQ=h900
This seems, google is able to paint tracks in multiple colors....
-
- Site Admin
- Posts: 3130
- Joined: Tue Feb 06, 2007 12:36 pm
Re: Color of the Track depending on Speed
The image looks as if the developer has added many tiny tracks comprising only a few track points. The Greenalp tracks uses one large track to display the trackpoints (looks smoother).
-
- Site Admin
- Posts: 3130
- Joined: Tue Feb 06, 2007 12:36 pm
Re: Color of the Track depending on Speed
Btw, please note that the website also supports displaying a track profile displaying speed and elevation.
Who is online
Users browsing this forum: No registered users and 48 guests