Commit a1f35b6b authored by Don Gagne's avatar Don Gagne

Allow map zoom to go to 20

parent 1b638340
......@@ -36,7 +36,7 @@ This file is part of the QGROUNDCONTROL project
#include <QNetworkReply>
#include <QMutex>
#define MAX_MAP_ZOOM (18.0)
#define MAX_MAP_ZOOM (20.0)
class UrlFactory : public QObject {
Q_OBJECT
......
......@@ -56,6 +56,9 @@ Rectangle {
property int oldz0: 0
property int oldz1: 0
readonly property real minZoomLevel: 3
readonly property real maxZoomLevel: 20
Component.onCompleted: {
QGroundControl.mapEngineManager.loadTileSets()
updateMap()
......@@ -357,8 +360,8 @@ Rectangle {
}
Slider {
id: _slider0
minimumValue: 3
maximumValue: 18
minimumValue: minZoomLevel
maximumValue: maxZoomLevel
stepSize: 1
tickmarksEnabled: false
orientation: Qt.Horizontal
......@@ -421,8 +424,8 @@ Rectangle {
}
Slider {
id: _slider1
minimumValue: 3
maximumValue: 18
minimumValue: minZoomLevel
maximumValue: maxZoomLevel
stepSize: 1
tickmarksEnabled: false
orientation: Qt.Horizontal
......
Markdown is supported
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