Geography : 9207: incomplete patch.

This commit is contained in:
SNoiraud 2016-03-06 11:28:24 +01:00
parent 97fbbfa31c
commit 037f8607e0

View File

@ -276,9 +276,10 @@ class GeoPlaces(GeoGraphyView):
place = dbstate.db.get_place_from_handle(place_x) place = dbstate.db.get_place_from_handle(place_x)
self._create_one_place(place) self._create_one_place(place)
if ( place.get_latitude() != "" and place.get_longitude() != "" ): if ( place.get_latitude() != "" and place.get_longitude() != "" ):
latitude, longitude = conv_lat_lon(latitude, longitude, "D.D8") latitude, longitude = conv_lat_lon(place.get_latitude(),
self.osm.set_center_and_zoom(latitude, longitude, place.get_longitude(), "D.D8")
int(config.get("geography.zoom"))) self.osm.set_center_and_zoom(float(latitude), float(longitude),
int(config.get("geography.zoom_when_center")))
_LOG.debug(" stop createmap.") _LOG.debug(" stop createmap.")
_LOG.debug("%s" % time.strftime("begin sort : " _LOG.debug("%s" % time.strftime("begin sort : "
"%a %d %b %Y %H:%M:%S", time.gmtime())) "%a %d %b %Y %H:%M:%S", time.gmtime()))