tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

unable to display relation data on map

Open satya-auti opened this issue 3 years ago • 0 comments

I'm trying to display building:part tag on the map.

function relation_scan_function(relation) if relation:Find("type") == "multipolygon" or relation:Find("type") == "building" then relation:Accept() end end

`while true do local rel = way:NextRelation() if not rel then break end -- print ("Part of route "..way:FindInRelation("ref")) part = way:FindInRelation("building:part") -- part = way:FindInRelation("ref")

    if part == "yes" then
        way:Layer("building",false)
        relation:Attribute("building:part",part)
    else
        way:Attribute("building:part","empty")
    end

end`

I have used above code for the same, if anyone implemented above code then help me to get the building:part tag data.

satya-auti avatar Feb 08 '23 08:02 satya-auti