From 97fbbfa31c92f7bcc861d3bded967c69d83b4f1f Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sun, 6 Mar 2016 10:42:34 +0100 Subject: [PATCH] Geography : 9207: geography view Location could not convert string to float --- gramps/plugins/view/geoplaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/view/geoplaces.py b/gramps/plugins/view/geoplaces.py index 837601c1b..01e55899b 100644 --- a/gramps/plugins/view/geoplaces.py +++ b/gramps/plugins/view/geoplaces.py @@ -276,8 +276,8 @@ 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() != "" ): - self.osm.set_center_and_zoom(float(place.get_latitude()), - float(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"))) _LOG.debug(" stop createmap.") _LOG.debug("%s" % time.strftime("begin sort : "