1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Merge pull request #1823 from holta/osm-descriptions

Map Pack description + extra_description explanations for teachers [OSM]
This commit is contained in:
A Holt 2019-07-06 11:06:17 -04:00 committed by GitHub
commit b7d6e8c65b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,11 +165,15 @@ def create_menu_def(region,default_name,intended_use='map'):
menuDef["logo_url"] = default_logo
menuitem = lang + '-' + item['perma_ref']
menuDef["menu_item_name"] = default_name
menuDef["title"] = "OpenStreetMap: 18 Levels of Zoom for <b> " + item.get('title','ERROR') + '</b>'
if item.get('title','ERROR') == "World":
menuDef["title"] = "OpenStreetMap: " + item.get('title','ERROR')
else:
menuDef["title"] = "OpenStreetMap: " + item.get('title','ERROR') + " & Earth"
menuDef["map_name"] = item['perma_ref']
# the following is in the idx json
#menuDef["file_name"] = lang + '-osm-omt_' + region + '_' + os.path.basename(item['url'])[:-4]
menuDef["description"] = '<p>Resolution of the Whole World to 5 KM. OpenStreetMap data for <b>' + item.get('title','') + '</b> with details down to 5 Meters</p>'
menuDef["description"] = '18 levels of zoom (5 m resolution) for ' + item.get('title','ERROR') + ', illustrating human geography.<p>10 levels of zoom (5 km resolution) of satellite photos covering the whole world.'
menuDef["extra_description"] = 'Search for cities/towns that have more than 1000 people. There are currently 127,654 such settlements.'
menuDef["extra_html"] = ""
#menuDef["automatically_generated"] = "true"
menuDef["change_ref"] = "generated"