summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Rahn <rahn@kde.org>2016-11-09 21:02:21 (GMT)
committerTorsten Rahn <trahn@testo.de>2016-11-09 21:04:59 (GMT)
commit0db4edeb1116464bec680b33d68cac091ed27cf4 (patch)
tree80171fafe5e2f02330b30279d9284798e3b4da9d
parent84f6ab0ef5f72b1bcca8bf2fbed61850609aa20d (diff)
Preliminary rough fix for the graticule:
Show the graticule on top of the vector rendering. TODO: - Labels should be displayed on top of the Graticule - Maybe change the color for Vector OSM, Maybe turn it off by default (at least for higher zoom levels?).
-rw-r--r--src/lib/marble/LayerManager.cpp1
-rw-r--r--src/plugins/render/graticule/GraticulePlugin.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/marble/LayerManager.cpp b/src/lib/marble/LayerManager.cpp
index 12fdb2e..c87293e 100644
--- a/src/lib/marble/LayerManager.cpp
+++ b/src/lib/marble/LayerManager.cpp
@@ -136,6 +136,7 @@ void LayerManager::renderLayers( GeoPainter *painter, ViewportParams *viewport )
renderPositions
<< QStringLiteral("SURFACE")
<< QStringLiteral("HOVERS_ABOVE_SURFACE")
+ << QStringLiteral("GRATICULE")
<< QStringLiteral("ATMOSPHERE")
<< QStringLiteral("ORBIT")
<< QStringLiteral("ALWAYS_ON_TOP")
diff --git a/src/plugins/render/graticule/GraticulePlugin.cpp b/src/plugins/render/graticule/GraticulePlugin.cpp
index 3131f9c..ad75aa0 100644
--- a/src/plugins/render/graticule/GraticulePlugin.cpp
+++ b/src/plugins/render/graticule/GraticulePlugin.cpp
@@ -70,7 +70,7 @@ QString GraticulePlugin::renderPolicy() const
QStringList GraticulePlugin::renderPosition() const
{
- return QStringList(QStringLiteral("SURFACE"));
+ return QStringList(QStringLiteral("GRATICULE"));
}
QString GraticulePlugin::name() const