mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
convert import styles to themepark
Introduces presets which avoid much of the previous configuration duplication. The original import files are now thin wrappers around the themepark themes.
This commit is contained in:
23
lib-lua/themes/nominatim/topics/address.lua
Normal file
23
lib-lua/themes/nominatim/topics/address.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
local _, flex, cfg = ...
|
||||
|
||||
flex.set_main_tags('admin')
|
||||
flex.modify_main_tags('street/' .. (cfg.street_theme or 'default'))
|
||||
flex.modify_main_tags{boundary = {postal_code = 'always'}}
|
||||
|
||||
flex.set_name_tags('core')
|
||||
flex.modify_name_tags('address')
|
||||
|
||||
flex.set_address_tags('core')
|
||||
flex.modify_address_tags('houses')
|
||||
|
||||
flex.ignore_keys('metatags')
|
||||
flex.add_for_extratags('required')
|
||||
|
||||
if cfg.with_extratags then
|
||||
flex.set_unused_handling{delete_keys = {'tiger:*'}}
|
||||
flex.add_for_extratags('name')
|
||||
flex.add_for_extratags('address')
|
||||
else
|
||||
flex.ignore_keys('name')
|
||||
flex.ignore_keys('address')
|
||||
end
|
||||
Reference in New Issue
Block a user