From 37364fb40a9384de84963fb5865348f126a4889a Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Sat, 9 Feb 2013 22:12:19 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- gps.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gps.c b/gps.c index 50e514eab..0f280a6ea 100644 --- a/gps.c +++ b/gps.c @@ -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); -- cgit v1.2.3-70-g09d2