From 037f8607e05a8c2f15ef7716982fdda6ec910412 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sun, 6 Mar 2016 11:28:24 +0100 Subject: [PATCH] Geography : 9207: incomplete patch. --- gramps/plugins/view/geoplaces.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/view/geoplaces.py b/gramps/plugins/view/geoplaces.py index 01e55899b..e5eabcc41 100644 --- a/gramps/plugins/view/geoplaces.py +++ b/gramps/plugins/view/geoplaces.py @@ -276,9 +276,10 @@ class GeoPlaces(GeoGraphyView): place = dbstate.db.get_place_from_handle(place_x) self._create_one_place(place) if ( place.get_latitude() != "" and place.get_longitude() != "" ): - latitude, longitude = conv_lat_lon(latitude, longitude, "D.D8") - self.osm.set_center_and_zoom(latitude, longitude, - int(config.get("geography.zoom"))) + latitude, longitude = conv_lat_lon(place.get_latitude(), + place.get_longitude(), "D.D8") + self.osm.set_center_and_zoom(float(latitude), float(longitude), + int(config.get("geography.zoom_when_center"))) _LOG.debug(" stop createmap.") _LOG.debug("%s" % time.strftime("begin sort : " "%a %d %b %Y %H:%M:%S", time.gmtime()))