]> git.street.me.uk Git - andy/viking.git/commit - src/gpx.c
Add ability to draw track names and distance labels on the viewport.
authorRob Norris <rw_norris@hotmail.com>
Sun, 16 Jun 2013 14:21:09 +0000 (15:21 +0100)
committerRob Norris <rw_norris@hotmail.com>
Sat, 20 Jul 2013 12:12:12 +0000 (13:12 +0100)
commit387ff7ac8e96fb90dbfd764956582a499a9bc699
tree8174cff3b9c5180292289f27431045f94d5777cd
parent23862dd44a5649a5fb4dc4bbe883376a8479a6e9
Add ability to draw track names and distance labels on the viewport.

Track labels are drawn in the appropriate track colour, when set.

Options are given to draw the track names at:
 a centre position
 start and end positions
 centre, start and end

The default is to not draw them.

Also distance along tracks may be displayed with up to N labels at friendly distance amounts.

Originally I had worked(and reworked) over several differing commits,
 but too tricky to split into back into the resulting logical commits, so combined together.
src/gpspoint.c
src/gpx.c
src/viktrack.c
src/viktrack.h
src/viktrwlayer.c
src/viktrwlayer_propwin.c