-
Notifications
You must be signed in to change notification settings - Fork 1
/
spirit.lua
33 lines (28 loc) · 1.13 KB
/
spirit.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
-- ---------------------------------------------------------------------------
--
-- Street Spirit theme
--
-- Configuration for the osm2pgsql Themepark framework
--
-- ---------------------------------------------------------------------------
local themepark = require('themepark')
themepark.debug = false
-- Tell themepark where the spirit themes are in case it's not the current working directory
local spirit_path = debug.getinfo(1, "S").source:sub(2):match("(.*/)")
if spirit_path ~= nil then
-- theme_path[1] is the osm2pgsql-themepark location, but it doesn't pick up the spirit location
themepark.theme_path[2] = spirit_path..'themes/'
end
themepark:add_topic('spirit/buildings')
themepark:add_topic('spirit/water')
themepark:add_topic('spirit/education')
themepark:add_topic('spirit/food')
themepark:add_topic('spirit/leisure')
themepark:add_topic('spirit/vegetation')
themepark:add_topic('spirit/landuse')
themepark:add_topic('spirit/roads')
themepark:add_topic('spirit/railway')
themepark:add_topic('spirit/transit')
themepark:add_topic('spirit/aeroway')
themepark:add_topic('spirit/places')
themepark:add_topic('spirit/admin')