summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-02 10:12:06 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-10-02 10:12:06 (GMT)
commit6bf2fd045fec880cfd4aa989135da2cce7a98059 (patch)
tree9c543a2d926c8902a4221b0314461140f6857ce0
parentcc9a2d9ab974e35d9addc1a9e196148dc7e42c85 (diff)
Less dominant road style in medium levels
-rw-r--r--src/lib/marble/StyleBuilder.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/marble/StyleBuilder.cpp b/src/lib/marble/StyleBuilder.cpp
index a705acc..e57572b 100644
--- a/src/lib/marble/StyleBuilder.cpp
+++ b/src/lib/marble/StyleBuilder.cpp
@@ -1322,15 +1322,19 @@ GeoDataStyle::ConstPtr StyleBuilder::createStyle(const StyleParameters &paramete
visualCategory <= GeoDataFeature::HighwayMotorway) ||
visualCategory == GeoDataFeature::TransportAirportRunway) {
- if (parameters.tileLevel <= 7) {
+ if (parameters.tileLevel <= 8) {
/** @todo: Dummy implementation for dynamic style changes based on tile level, replace with sane values */
lineStyle.setPhysicalWidth(0.0);
lineStyle.setWidth(2.0);
- } else if (parameters.tileLevel <= 9) {
+ } else if (parameters.tileLevel <= 10) {
/** @todo: Dummy implementation for dynamic style changes based on tile level, replace with sane values */
lineStyle.setPhysicalWidth(0.0);
lineStyle.setWidth(3.0);
- } else {
+ } else if (parameters.tileLevel <= 12) {
+ /** @todo: Dummy implementation for dynamic style changes based on tile level, replace with sane values */
+ lineStyle.setPhysicalWidth(0.0);
+ lineStyle.setWidth(4.0);
+ }else {
auto tagIter = osmData.findTag(QStringLiteral("width"));
if (tagIter != osmData.tagsEnd()) {
QString const widthValue = QString(tagIter.value()).remove(QStringLiteral(" meters")).remove(QStringLiteral(" m"));