summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-07-23 16:37:15 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-07-23 16:37:15 (GMT)
commitafab421dc32c429484ff2cf46fc66bbbe4683441 (patch)
treee96b607a2c18ec1262cb653494d5570b0caac03e
parent84f64ecc3216eef582a4896b50e4e80df1eb2b9a (diff)
Improve rendering of pedestrian areas
Foot ways can be tagged as closed areas and become pedestrian areas. Move them towards the bottom in the rendering order and paint them without an outline to have neighboring pedestrian areas blend into each other.
-rw-r--r--src/lib/marble/StyleBuilder.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/marble/StyleBuilder.cpp b/src/lib/marble/StyleBuilder.cpp
index ade7149..73a02ba 100644
--- a/src/lib/marble/StyleBuilder.cpp
+++ b/src/lib/marble/StyleBuilder.cpp
@@ -921,6 +921,9 @@ GeoDataStyle::ConstPtr StyleBuilder::createStyle(const StyleParameters &paramete
polyStyle.setTexturePath(MarbleDirs::path("bitmaps/osmcarto/patterns/grave_yard_generic.png"));
adjustStyle = true;
}
+ } else if (visualCategory == GeoDataFeature::HighwayPedestrian) {
+ polyStyle.setOutline(false);
+ adjustStyle = true;
}
if (adjustStyle) {
GeoDataStyle::Ptr newStyle(new GeoDataStyle(*style));
@@ -1030,6 +1033,9 @@ GeoDataStyle::ConstPtr StyleBuilder::createStyle(const StyleParameters &paramete
adjustStyle = true;
}
}
+ } else if (visualCategory == GeoDataFeature::HighwayPedestrian) {
+ polyStyle.setOutline(false);
+ adjustStyle = true;
}
if (adjustStyle) {
@@ -1084,6 +1090,7 @@ QStringList StyleBuilder::renderOrder() const
paintLayerOrder << Private::createPaintLayerItem("Polygon", GeoDataFeature::LeisureStadium);
paintLayerOrder << Private::createPaintLayerItem("Polygon", GeoDataFeature::NaturalWood);
paintLayerOrder << Private::createPaintLayerItem("Polygon", GeoDataFeature::LanduseGrass);
+ paintLayerOrder << Private::createPaintLayerItem("Polygon", GeoDataFeature::HighwayPedestrian);
paintLayerOrder << Private::createPaintLayerItem("Polygon", GeoDataFeature::LeisurePlayground);
paintLayerOrder << Private::createPaintLayerItem("Polygon", GeoDataFeature::NaturalScrub);
paintLayerOrder << Private::createPaintLayerItem("Polygon", GeoDataFeature::LeisureTrack);