Browse Source

Allow map zoom to go to 20

QGC4.4
Don Gagne 9 years ago
parent
commit
a1f35b6b21
  1. 2
      src/QtLocationPlugin/QGCMapUrlEngine.h
  2. 11
      src/QtLocationPlugin/QMLControl/OfflineMap.qml

2
src/QtLocationPlugin/QGCMapUrlEngine.h

@ -36,7 +36,7 @@ This file is part of the QGROUNDCONTROL project @@ -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

11
src/QtLocationPlugin/QMLControl/OfflineMap.qml

@ -56,6 +56,9 @@ Rectangle { @@ -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 { @@ -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 { @@ -421,8 +424,8 @@ Rectangle {
}
Slider {
id: _slider1
minimumValue: 3
maximumValue: 18
minimumValue: minZoomLevel
maximumValue: maxZoomLevel
stepSize: 1
tickmarksEnabled: false
orientation: Qt.Horizontal

Loading…
Cancel
Save