Commit afab421d authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

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.
parent 84f64ecc
......@@ -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);
......
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