summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-08-06 11:54:52 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-08-06 11:54:52 (GMT)
commitdb22e5607162da786e29146d2e690c79850d5359 (patch)
treeea818d64e98b2ba7e96268faec74eb63bda57f82
parent2f8e6aae7cfbeb5f032e479d25ee4145171b7246 (diff)
Do not fill place areas, just show their label
-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 ef7c7df..59e4da7 100644
--- a/src/lib/marble/StyleBuilder.cpp
+++ b/src/lib/marble/StyleBuilder.cpp
@@ -374,6 +374,10 @@ void StyleBuilder::Private::initializeDefaultStyles()
m_defaultStyle[GeoDataFeature::PlaceTown]->labelStyle().setAlignment( GeoDataLabelStyle::Center );
m_defaultStyle[GeoDataFeature::PlaceVillage] = GeoDataStyle::Ptr(new GeoDataStyle( QString(), QFont( defaultFamily, (int)(defaultSize * 2.0 ), 75, false ), QColor( "#505050" ) ));
m_defaultStyle[GeoDataFeature::PlaceVillage]->labelStyle().setAlignment( GeoDataLabelStyle::Center );
+ for (int i=GeoDataFeature::PlaceCity; i<=GeoDataFeature::PlaceVillage; ++i) {
+ m_defaultStyle[GeoDataFeature::GeoDataVisualCategory(i)]->polyStyle().setFill(false);
+ m_defaultStyle[GeoDataFeature::GeoDataVisualCategory(i)]->polyStyle().setOutline(false);
+ }
m_defaultStyle[GeoDataFeature::Mountain]
= GeoDataStyle::Ptr(new GeoDataStyle( MarbleDirs::path( "bitmaps/mountain_1.png" ),