Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to display relation data on map #458

Open
satya-auti opened this issue Feb 8, 2023 · 0 comments · May be fixed by #692
Open

unable to display relation data on map #458

satya-auti opened this issue Feb 8, 2023 · 0 comments · May be fixed by #692

Comments

@satya-auti
Copy link

satya-auti commented Feb 8, 2023

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.

@c84c c84c linked a pull request Mar 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant