summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-02 16:38:01 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-10-02 16:38:01 (GMT)
commit6dc481ad0c5f9dac3bb78f2e92e42a4cfacda42d (patch)
treeebd387551aae802d5704e7e56bba3f6962168e6b
parent1fbaba73adc21a338872f2ecf7c6baa322499c52 (diff)
Prefer building to other competing tags that set a visual category
-rw-r--r--src/lib/marble/StyleBuilder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/marble/StyleBuilder.cpp b/src/lib/marble/StyleBuilder.cpp
index e57572b..d9d54a8 100644
--- a/src/lib/marble/StyleBuilder.cpp
+++ b/src/lib/marble/StyleBuilder.cpp
@@ -2024,6 +2024,10 @@ GeoDataFeature::GeoDataVisualCategory StyleBuilder::determineVisualCategory(cons
return GeoDataFeature::None;
}
+ if (osmData.containsTag("building", "yes")) {
+ return GeoDataFeature::Building;
+ }
+
if (osmData.containsTag("historic", "castle") && osmData.containsTag("castle_type", "kremlin")) {
return GeoDataFeature::None;
}