1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #1724 from georgejhunt/map_redirect

Map redirect [for http://box/maps to show the latest, OSM]
This commit is contained in:
A Holt 2019-06-14 13:02:17 -04:00 committed by GitHub
commit ddaa3bb118
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,11 @@ def main():
print('autoudate of menu items is enabled:%s. Adding %s'%(\
fetch_menu_json_value('autoupdate_menu'),region,))
menus.update_menu_json(menu_ref)
# redirect from box/maps to an installed map rather than test page
with open('{{ vector_map_path }}/index.html','w') as fp:
outstr = """<head> \n<meta http-equiv="refresh" content="0; URL=/osm-vector-maps/en-osm-omt_%s " />\n</head>"""%fname
fp.write(outstr)
def get_map_catalog():
global map_catalog