Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions process.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,22 @@ function way_function()
return
end

-- island mames into places layer
-- because not all have name as point
if place == "island" then
LayerAsCentroid("place_labels", "polylabel", "label")
Attribute("kind", place)
AttributeNumeric("area", area)
MinZoom(8)
setNameAttributes()
local population = Find("population")
local populationNum = tonumber(population)
if populationNum ~= nil then
AttributeNumeric("population", populationNum)
ZOrder(populationNum)
end
end

-- Layer addresses
local housenumber = Find("addr:housenumber")
local housename = Find("addr:housename")
Expand Down