Skip to content

Commit

Permalink
Merge pull request #9 from pnorman/dam
Browse files Browse the repository at this point in the history
shortbread: drop incorrect dam columns, fix minzoom
  • Loading branch information
joto authored Mar 7, 2024
2 parents a9c2f2e + 389cd56 commit f404aad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions themes/shortbread_v1/topics/dams.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ themepark:add_table{
{ key = 'waterway', value = 'dam', on = 'w' },
},
tiles = {
minzoom = 14,
minzoom = 12,
},
}

themepark:add_table{
name = 'dam_polygons',
ids_type = 'way',
geom = 'polygon',
columns = themepark:columns('core/name', {
columns = themepark:columns({
{ column = 'kind', type = 'text', not_null = true },
}),
tags = {
{ key = 'waterway', value = 'dam', on = 'a' },
},
tiles = {
minzoom = 14,
minzoom = 12,
},
}

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

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

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

for sgeom in object.as_area():geometries() do
a.geom = sgeom
Expand Down

0 comments on commit f404aad

Please sign in to comment.