Commit 57b4f749 authored by Dennis Nienhüser's avatar Dennis Nienhüser

Consider name tag as well, and prefer housename to housenumber

parent b2ba7f39
......@@ -212,10 +212,12 @@ void GeoPolygonGraphicsItem::extractBuildingHeight()
height = 3.0 * qBound(1, 1+levels-skipLevels, 35);
}
if (placemark->osmData().containsTagKey("addr:housenumber")) {
m_buildingLabel = placemark->osmData().tagValue("addr:housenumber");
if (!placemark->name().isEmpty()) {
m_buildingLabel = placemark->name();
} else if (placemark->osmData().containsTagKey("addr:housename")) {
m_buildingLabel = placemark->osmData().tagValue("addr:housename");
} else if (placemark->osmData().containsTagKey("addr:housenumber")) {
m_buildingLabel = placemark->osmData().tagValue("addr:housenumber");
}
}
......
Markdown is supported
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