Center the map

merge-requests/30/head
Bob Mottram 2022-05-21 13:34:20 +01:00
parent ac2e45f034
commit c80d5f25be
1 changed files with 3 additions and 1 deletions

View File

@ -2159,10 +2159,12 @@ def individual_post_as_html(signing_priv_key_pem: str,
if location_str:
if '://' in location_str and '.' in location_str:
bounding_box_degrees = 0.001
map_str = \
map_str = \
html_open_street_map(location_str,
bounding_box_degrees,
translate)
if map_str:
map_str = '<center>\n' + map_str + '</center>\n'
if is_muted:
content_str = ''