From cecb9d9200cfb67537b2a6791d3412e1fac02265 Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Wed, 2 Oct 2024 00:06:10 -0300 Subject: [PATCH] Do not inherit "oneway" and "surface" from Relation. Signed-off-by: Viktor Govako --- generator/relation_tags.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generator/relation_tags.cpp b/generator/relation_tags.cpp index 825f005d2..14b77a383 100644 --- a/generator/relation_tags.cpp +++ b/generator/relation_tags.cpp @@ -209,7 +209,11 @@ void RelationTagsWay::Process(RelationElement const & e) continue; // 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; Base::AddCustomTag(p);