summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-09-13 20:47:21 (GMT)
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-09-13 20:56:11 (GMT)
commit7fc3301af5cffc0be860e7f0008294e3e909db6f (patch)
treeb5198d48aad6b6ff036d694ab235f5e793f56b59
parent315ab418be7f159aa42ebd383c89769b3bc2bb83 (diff)
always fall back to "ref" tag when no name is found (not only for highways)
Motivation: Building numbers seem to be mapped with "ref" tags.
-rw-r--r--src/plugins/runner/osm/OsmWay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/runner/osm/OsmWay.cpp b/src/plugins/runner/osm/OsmWay.cpp
index ac39143..3970ca5 100644
--- a/src/plugins/runner/osm/OsmWay.cpp
+++ b/src/plugins/runner/osm/OsmWay.cpp
@@ -28,7 +28,7 @@ void OsmWay::create(GeoDataDocument *document, const OsmNodes &nodes, QSet<qint6
placemark->setOsmData(m_osmData);
placemark->setVisualCategory(StyleBuilder::determineVisualCategory(m_osmData));
placemark->setName(m_osmData.tagValue(QStringLiteral("name")));
- if (placemark->name().isEmpty() && placemark->visualCategory() >= GeoDataFeature::HighwaySteps && placemark->visualCategory() <= GeoDataFeature::HighwayMotorway) {
+ if (placemark->name().isEmpty()) {
placemark->setName(m_osmData.tagValue(QStringLiteral("ref")));
}
placemark->setVisible(placemark->visualCategory() != GeoDataFeature::None);