]> git.openstreetmap.org Git - nominatim.git/blob - lib-lua/themes/nominatim/topics/admin.lua
convert import styles to themepark
[nominatim.git] / lib-lua / themes / nominatim / topics / admin.lua
1 local _, flex, cfg = ...
2
3 flex.set_main_tags('admin')
4
5 flex.set_name_tags('core')
6
7 flex.set_address_tags('core')
8 flex.set_postcode_fallback(false)
9
10 flex.ignore_keys('metatags')
11 flex.add_for_extratags('required')
12
13 if cfg.with_extratags then
14     flex.set_unused_handling{delete_keys = {'tiger:*'}}
15     flex.add_for_extratags('name')
16     flex.add_for_extratags('address')
17 else
18     flex.ignore_keys('name')
19     flex.ignore_keys('address')
20 end