You will notice that some places like "island" or "archipelago" etc. are stored as Relations.
Does tilemaker support relations with multipolygon types? (Edit: I have read the documentation)
Is there a way I can add these relations to a layer? or print the relation names on terminal (with type multipolygon)?
I am trying out something like this for process.lua:
function process_islands(relation)
if relation:Find("type") == "multipolygon" and relation:Find("place") == "island" then
local name = relation:Find("name")
print(name)
relation:Layer("multipolygon_layer", true)
relation:MinZoom(3)
relation:Attribute("name", name)
end
end
function relation_scan_function(relation)
if relation:Find("type") == "multipolygon" and relation:Find("place") == "island" then
relation:Accept()
process_islands(relation)
print(relation:Find("name"))
end
end
Hi,
I have noticed that some data are stored as Relations in OSM and not as Nodes.
For example, run here: https://overpass-turbo.eu/
This query:
You will notice that some places like "island" or "archipelago" etc. are stored as Relations.
Does tilemaker support relations with multipolygon types? (Edit: I have read the documentation)
Is there a way I can add these relations to a layer? or print the relation names on terminal (with type multipolygon)?
I am trying out something like this for
process.lua
:And also for
config.json
something like this:I am running it through this command:
However nothing seems to work. What am I missing?
Thank you very much once again for your support, I highly appreciate it π