Modify

Opened 16 years ago

Closed 16 years ago

#1978 closed enhancement (fixed)

[PATCH] Enhanced 'Color tracks by velocity' setting

Reported by: lard Owned by: framm
Priority: minor Milestone:
Component: unspecified Version:
Keywords: Cc:

Description

The 'Color tracks by velocity' setting works well with car based GPS tracks, but is less useful with bicycle or foot based tracks as the colours assigned to given velocities are fixed in a range appropriate for cars, and this is too fast to generate noticeable variations in colour for other modes of transport.

I would like to see the ability to either stretch the colour range over the range of velocities found in a track, or manually specify the min and max velocity over which the colour range is distributed.

Attachments (2)

addTunePrefToGPXdraw.patch (3.1 KB ) - added by xeen 16 years ago.
Adds pref to GPX Layer to allow speed coloring tuning for different speeds
addTunePrefToGPXprefs.patch (3.7 KB ) - added by xeen 16 years ago.
Adds UI for speed coloring tuning to the prefs

Download all attachments as: .zip

Change History (6)

comment:1 by Schusch, 16 years ago

nice idea - i miss that, too

by xeen, 16 years ago

Attachment: addTunePrefToGPXdraw.patch added

Adds pref to GPX Layer to allow speed coloring tuning for different speeds

by xeen, 16 years ago

Attachment: addTunePrefToGPXprefs.patch added

Adds UI for speed coloring tuning to the prefs

comment:2 by xeen, 16 years ago

The first patch adds a pref that allows to tune the color drawing for different speeds. A high value will work like now (for cars), lowering the value will stretch low speeds across the color range, thus make "coloring by velocity" work when walking. Higher speeds or off limit values will render purple.

The 2nd patch adds this pref to the pref dialog using a combo box (car, bicycle, foot). Hmm… it would be a sane idea to add a <=0 check in GpxLayer.java in case someone plays with the advanced prefs in order to prevent an error popping up.

comment:3 by anonymous, 16 years ago

Summary: Enhanced 'Color tracks by velocity' setting[PATCH] Enhanced 'Color tracks by velocity' setting

comment:4 by anonymous, 16 years ago

Resolution: fixed
Status: newclosed

Applied in r1283. Please update sources before making patches.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.