nzjrs/osm-gps-map — pull request #33 by smartyg (2014-08-27 09:49:20+00:00)
Title: make tracks and polygons clickable and make track points highlightable

Points on tracks and polygons which have the clickable property set will emit a point-clicked signal when the user left-clicks on a point. When the editable property is also set a then a click is only considered as a click when the mouse pointer does not move while the left button is down. In case the mouse is moved while the left button is down it is considered as a drag-n-drop action (thus emitting a point-changed signal).

The point-select signal is also emitted after a 'breaker' has been clicked (only when editable is set).

This patch also include code to highlight a point with a (custom) highlight color (only the alpha channel is the same as for non-highlighted points). Only one point per track can be highlighted. Highlighting a point works by passing a pointer to a `OsmGpsMapPoint` (which must be in the list of track points) as value for the `highlight-point` property.

Also two examples are included to demonstrate the use of the click and highlight usage. The second example illustrate these features combined with the editable property.

If there are any question, please don't hesitate to ask.