Do not inherit "oneway" and "surface" from Relation.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako
2024-10-02 00:06:10 -03:00
committed by Konstantin Pastbin
parent d89ef42acc
commit 34af5e26d9

View File

@@ -209,7 +209,11 @@ void RelationTagsWay::Process(RelationElement const & e)
continue; continue;
// Do not pass "ref" tags from boundaries and other, non-route relations to highways. // Do not pass "ref" tags from boundaries and other, non-route relations to highways.
if (p.first == "ref" && isHighway) if (isHighway && p.first == "ref")
continue;
// https://github.com/organicmaps/organicmaps/issues/8246
if (type == "route" && (p.first == "oneway" || p.first == "surface"))
continue; continue;
Base::AddCustomTag(p); Base::AddCustomTag(p);