diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-31 16:20:24 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-31 16:20:24 +1100 |
commit | b87a10a69621d572752f1c164f1cca6202f6485d (patch) | |
tree | 1a609c5d930466503da151e61c3ae3d38e797b46 /gps.c | |
parent | c8f2622f2ff8f4e7b3f50bd318c466bb458d8932 (diff) | |
download | subsurface-b87a10a69621d572752f1c164f1cca6202f6485d.tar.gz |
Minor fine tuning of window size and initial zoom factors for maps
This may be a matter of taste, but it seems that these values work better.
Most importantly, Hawaii is now visible by default...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gps.c')
-rw-r--r-- | gps.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -186,7 +186,7 @@ void show_map(OsmGpsMap *map, GtkWidget **window, struct dive *dive, void (*call *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_position(GTK_WINDOW(*window), GTK_WIN_POS_MOUSE); - gtk_window_set_default_size(GTK_WINDOW(*window), 640, 480); + gtk_window_set_default_size(GTK_WINDOW(*window), 560, 360); gtk_window_set_title(GTK_WINDOW(*window), _("Dive locations")); gtk_container_set_border_width(GTK_CONTAINER(*window), 5); gtk_window_set_resizable(GTK_WINDOW(*window), TRUE); @@ -218,7 +218,7 @@ void show_gps_location(struct dive *dive, void (*callback)(float, float)) map = init_map(); if (lat != 0 || lng != 0) { add_gps_point(map, lat, lng); - osm_gps_map_set_center_and_zoom(map, lat, lng, 8); + osm_gps_map_set_center_and_zoom(map, lat, lng, 9); picture = gdk_pixbuf_new_from_file("./flag.png", &gerror); if (picture) { osm_gps_map_image_add_with_alignment(map, lat, lng, picture, 0, 1); @@ -226,7 +226,7 @@ void show_gps_location(struct dive *dive, void (*callback)(float, float)) printf("error message: %s\n", gerror->message); } } else { - osm_gps_map_set_center_and_zoom(map, 0, 0, 2); + osm_gps_map_set_center_and_zoom(map, 0, 0, 1); } show_map(map, &window, dive, callback); } @@ -247,7 +247,7 @@ void show_gps_locations() dive->longitude.udeg / 1000000.0); } } - osm_gps_map_set_center_and_zoom(map, 0, 0, 2); + osm_gps_map_set_center_and_zoom(map, 0, 0, 1); show_map(map, &window, NULL, NULL); } |