Commit 7fc3301a authored by Bernhard Beschow's avatar Bernhard Beschow
Browse files

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.
parent 315ab418
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment