Skip to content

Commit 389cd56

Browse files
committed
shortbread: drop incorrect dam columns, fix minzoom
1 parent 5ec44a5 commit 389cd56

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

themes/shortbread_v1/topics/dams.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ themepark:add_table{
1818
{ key = 'waterway', value = 'dam', on = 'w' },
1919
},
2020
tiles = {
21-
minzoom = 14,
21+
minzoom = 12,
2222
},
2323
}
2424

2525
themepark:add_table{
2626
name = 'dam_polygons',
2727
ids_type = 'way',
2828
geom = 'polygon',
29-
columns = themepark:columns('core/name', {
29+
columns = themepark:columns({
3030
{ column = 'kind', type = 'text', not_null = true },
3131
}),
3232
tags = {
3333
{ key = 'waterway', value = 'dam', on = 'a' },
3434
},
3535
tiles = {
36-
minzoom = 14,
36+
minzoom = 12,
3737
},
3838
}
3939

@@ -49,7 +49,6 @@ themepark:add_proc('way', function(object, data)
4949

5050
if waterway == 'dam' then
5151
local a = { kind = waterway }
52-
themepark.themes.core.add_name(a, object)
5352
a.geom = object.as_linestring()
5453
themepark:insert('dam_lines', a, t)
5554
end
@@ -61,7 +60,6 @@ themepark:add_proc('area', function(object, data)
6160

6261
if waterway == 'dam' then
6362
local a = { kind = waterway }
64-
themepark.themes.core.add_name(a, object)
6563

6664
for sgeom in object.as_area():geometries() do
6765
a.geom = sgeom

0 commit comments

Comments
 (0)