mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
zero out the start_url
This commit is contained in:
parent
16f1a7b839
commit
cf3877ad95
1 changed files with 9 additions and 7 deletions
|
@ -116,12 +116,14 @@ def write_osm_vector_idx(installed_maps):
|
||||||
if map_dict == '': continue
|
if map_dict == '': continue
|
||||||
|
|
||||||
# Create the idx file in format required bo js-menu system
|
# Create the idx file in format required bo js-menu system
|
||||||
idx_dict[region] = {}
|
item = map_dict['perma_ref']
|
||||||
idx_dict[region]['file_name'] = os.path.basename(map_dict['url'][:-4])
|
idx_dict[item] = {}
|
||||||
idx_dict[region]['menu_item'] = map_dict['perma_ref']
|
idx_dict[item]['file_name'] = os.path.basename(map_dict['url'][:-4])
|
||||||
idx_dict[region]['size'] = map_dict['size']
|
idx_dict[item]['menu_item'] = map_dict['perma_ref']
|
||||||
idx_dict[region]['date'] = map_dict['date']
|
idx_dict[item]['size'] = map_dict['size']
|
||||||
idx_dict[region]['language'] = map_dict['perma_ref'][:2]
|
idx_dict[item]['date'] = map_dict['date']
|
||||||
|
idx_dict[item]['region'] = region
|
||||||
|
idx_dict[item]['language'] = map_dict['perma_ref'][:2]
|
||||||
|
|
||||||
with open(osm_vector_idx_dir + '/osm_version_idx.json','w') as idx:
|
with open(osm_vector_idx_dir + '/osm_version_idx.json','w') as idx:
|
||||||
idx.write(json.dumps(idx_dict,indent=2))
|
idx.write(json.dumps(idx_dict,indent=2))
|
||||||
|
@ -143,7 +145,7 @@ def create_menu_def(region,default_name,intended_use='map'):
|
||||||
menuDef["menu_item_name"] = default_name
|
menuDef["menu_item_name"] = default_name
|
||||||
menuDef["title"] = "OpenStreetMap: 18 Levels of Zoom for <b> " + item.get('title','ERROR') + '</b>'
|
menuDef["title"] = "OpenStreetMap: 18 Levels of Zoom for <b> " + item.get('title','ERROR') + '</b>'
|
||||||
menuDef["map_name"] = item['perma_ref']
|
menuDef["map_name"] = item['perma_ref']
|
||||||
menuDef["start_url"] = lang + '-' + item['perma_ref']
|
menuDef["start_url"] = ""
|
||||||
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"] = '<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["extra_html"] = ""
|
menuDef["extra_html"] = ""
|
||||||
menuDef["automatically_generated"] = "true"
|
menuDef["automatically_generated"] = "true"
|
||||||
|
|
Loading…
Reference in a new issue