-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspirit.lua
34 lines (29 loc) · 1.09 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
34
-- ---------------------------------------------------------------------------
--
-- Street Spirit theme
--
-- Configuration for the osm2pgsql Themepark framework
--
-- ---------------------------------------------------------------------------
local themepark = require('themepark')
themepark.debug = false
script_path = debug.getinfo(1, "S").source:sub(2):match("(.*/)")
if script_path ~= nil then
-- osm2pgsql was told to load foo/spirit.lua, so we need to add foo to the path
package.path = script_path.."?.lua;"..package.path
end
-- Tell themepark where the themes are
themepark:add_theme_dir('themes')
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')