Geography : 9207: geography view Location could not convert string to float.
This commit is contained in:
parent
651aac6afa
commit
7f5d4fb10f
@ -290,9 +290,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() != "" ):
|
||||
self.osm.set_center_and_zoom(float(place.get_latitude()),
|
||||
float(place.get_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()))
|
||||
|
Loading…
Reference in New Issue
Block a user