Modify

Opened 12 years ago

Closed 12 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 12 years ago.
Adds pref to GPX Layer to allow speed coloring tuning for different speeds
addTunePrefToGPXprefs.patch (3.7 KB) - added by xeen 12 years ago.
Adds UI for speed coloring tuning to the prefs

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 years ago by Schusch

nice idea - i miss that, too

Changed 12 years ago by xeen

Attachment: addTunePrefToGPXdraw.patch added

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

Changed 12 years ago by xeen

Attachment: addTunePrefToGPXprefs.patch added

Adds UI for speed coloring tuning to the prefs

comment:2 Changed 12 years ago by xeen

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 Changed 12 years ago by anonymous

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

comment:4 Changed 12 years ago by anonymous

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.