diff --git a/src/QtLocationPlugin/QGCMapUrlEngine.h b/src/QtLocationPlugin/QGCMapUrlEngine.h index 57db8512736d103579c6e33204a7d12dacde1075..8a2831249932ba5d07c73018d35b9ce9fb73767a 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 4c78e3e6e8820c5226beda293a6ddfbb3b80a1d3..68a56908a9b2f51f1aa5ecbb04b2e91d5f7d7914 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