[eog-plugins] map: Use meaningful initial zoom level
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [eog-plugins] map: Use meaningful initial zoom level
- Date: Sat,  1 Oct 2016 13:19:56 +0000 (UTC)
commit ec0dd943a03327b410f0ab29f2363facb6b2e800
Author: Thomas Bechtold <tbechtold suse com>
Date:   Mon Sep 26 08:36:47 2016 +0200
    map: Use meaningful initial zoom level
    
    Just be sure that all given markers are visible on the initial zoom level
    but on the other hand, don't show the whole world.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771976
 plugins/map/eog-map-plugin.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/map/eog-map-plugin.c b/plugins/map/eog-map-plugin.c
index c4d6982..d60393f 100644
--- a/plugins/map/eog-map-plugin.c
+++ b/plugins/map/eog-map-plugin.c
@@ -376,6 +376,12 @@ prepared_cb (EogWindow *window,
         */
        selection_changed_cb (EOG_THUMB_VIEW (plugin->thumbview), plugin);
 
+       /* zoom in and the be sure that all markers are visible.
+        * This is useful to have a good starting zoom level where
+        * you can see a available markers on the map
+        */
+       champlain_view_set_zoom_level (plugin->map, 15);
+       champlain_view_ensure_layers_visible (plugin->map, FALSE);
 }
 
 static void
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]