diff --git a/src/QtLocationPlugin/QGCMapUrlEngine.h b/src/QtLocationPlugin/QGCMapUrlEngine.h index 57db851..8a28312 100644 --- a/src/QtLocationPlugin/QGCMapUrlEngine.h +++ b/src/QtLocationPlugin/QGCMapUrlEngine.h @@ -36,7 +36,7 @@ This file is part of the QGROUNDCONTROL project #include #include -#define MAX_MAP_ZOOM (18.0) +#define MAX_MAP_ZOOM (20.0) class UrlFactory : public QObject { Q_OBJECT diff --git a/src/QtLocationPlugin/QMLControl/OfflineMap.qml b/src/QtLocationPlugin/QMLControl/OfflineMap.qml index 4c78e3e..68a5690 100644 --- a/src/QtLocationPlugin/QMLControl/OfflineMap.qml +++ b/src/QtLocationPlugin/QMLControl/OfflineMap.qml @@ -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