diff --git a/process.lua b/process.lua index 9673d18..d838b26 100644 --- a/process.lua +++ b/process.lua @@ -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")