Skip to content

unable to display relation data on map #458

Open
@satya-auti

Description

@satya-auti

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions