diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2013-02-09 22:12:19 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-09 13:16:10 -0800 |
commit | 37364fb40a9384de84963fb5865348f126a4889a (patch) | |
tree | c8f6705ae4d264efcbbe66d6c0705793f71dab17 /gps.c | |
parent | 94546acc9459fba89f5ecaebb69675f6596d1ac4 (diff) | |
download | subsurface-37364fb40a9384de84963fb5865348f126a4889a.tar.gz |
Make map dot more visible
The OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_HYBRID shows cities as red dots
in a couple of the zoom levels. Make the dive dots larger and
yellow to make them stand out.
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gps.c')
-rw-r--r-- | gps.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -135,7 +135,15 @@ static gboolean scroll_cb(GtkWidget *widget, GdkEventScroll *event, gpointer dat static void add_gps_point(OsmGpsMap *map, float latitude, float longitude) { - OsmGpsMapTrack *track = osm_gps_map_track_new(); + OsmGpsMapTrack *track; + GdkColor dotColor = { 0, 0xFFFF, 0xFFFF, 0x4444 }; + + track = g_object_new(OSM_TYPE_GPS_MAP_TRACK, + "color", &dotColor, + "line-width", (gfloat) 10, + "alpha", (gfloat) 0.7, + NULL); + OsmGpsMapPoint *point = osm_gps_map_point_new_degrees(latitude, longitude); osm_gps_map_track_add_point(track, point); osm_gps_map_track_add(map, track); |