Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
1f27b9f1
Commit
1f27b9f1
authored
Dec 15, 2017
by
Andreas Bircher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smaller tiles and only allow offline caching downloading together with map tiles
parent
07bb2365
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
QGCMapEngine.cpp
src/QtLocationPlugin/QGCMapEngine.cpp
+1
-4
QGCMapUrlEngine.cpp
src/QtLocationPlugin/QGCMapUrlEngine.cpp
+1
-1
OfflineMap.qml
src/QtLocationPlugin/QMLControl/OfflineMap.qml
+5
-3
QGCMapEngineManager.cc
src/QtLocationPlugin/QMLControl/QGCMapEngineManager.cc
+4
-0
TerrainTile.h
src/TerrainTile.h
+0
-2
No files found.
src/QtLocationPlugin/QGCMapEngine.cpp
View file @
1f27b9f1
...
...
@@ -112,7 +112,7 @@ getQGCMapEngine()
}
//-----------------------------------------------------------------------------
const
double
QGCMapEngine
::
srtm1TileSize
=
0.0
25
;
const
double
QGCMapEngine
::
srtm1TileSize
=
0.0
1
;
//-----------------------------------------------------------------------------
void
...
...
@@ -393,9 +393,6 @@ QGCMapEngine::getMapNameList()
mapList
<<
kEsriTypes
[
i
].
name
;
}
}
for
(
size_t
i
=
0
;
i
<
NUM_ELEVMAPS
;
i
++
)
{
mapList
<<
kElevationTypes
[
i
].
name
;
}
return
mapList
;
}
...
...
src/QtLocationPlugin/QGCMapUrlEngine.cpp
View file @
1f27b9f1
...
...
@@ -552,7 +552,7 @@ UrlFactory::_tryCorrectGoogleVersions(QNetworkAccessManager* networkManager)
#define AVERAGE_MAPBOX_SAT_MAP 15739
#define AVERAGE_MAPBOX_STREET_MAP 5648
#define AVERAGE_TILE_SIZE 13652
#define AVERAGE_AIRMAP_ELEV_SIZE
3400
0
#define AVERAGE_AIRMAP_ELEV_SIZE
536
0
//-----------------------------------------------------------------------------
quint32
...
...
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
1f27b9f1
...
...
@@ -433,7 +433,7 @@ QGCView {
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
anchors.horizontalCenter
:
parent
.
horizontalCenter
visible
:
!
_defaultSet
visible
:
!
_defaultSet
&&
mapType
!==
"
Airmap Elevation Data
"
QGCLabel
{
text
:
qsTr
(
"
Zoom Levels:
"
);
width
:
infoView
.
_labelWidth
;
}
QGCLabel
{
text
:
offlineMapView
.
_currentSelection
?
(
offlineMapView
.
_currentSelection
.
minZoom
+
"
-
"
+
offlineMapView
.
_currentSelection
.
maxZoom
)
:
""
;
horizontalAlignment
:
Text
.
AlignRight
;
width
:
infoView
.
_valueWidth
;
}
}
...
...
@@ -737,8 +737,10 @@ QGCView {
anchors.right
:
parent
.
right
text
:
qsTr
(
"
Fetch elevation data
"
)
checked
:
QGroundControl
.
mapEngineManager
.
fetchElevation
onClicked
:
QGroundControl
.
mapEngineManager
.
fetchElevation
=
checked
visible
:
mapType
!=
"
Airmap Elevation Data
"
onClicked
:
{
QGroundControl
.
mapEngineManager
.
fetchElevation
=
checked
handleChanges
()
}
}
}
...
...
src/QtLocationPlugin/QMLControl/QGCMapEngineManager.cc
View file @
1f27b9f1
...
...
@@ -83,6 +83,10 @@ QGCMapEngineManager::updateForCurrentView(double lon0, double lat0, double lon1,
QGCTileSet
set
=
QGCMapEngine
::
getTileCount
(
z
,
lon0
,
lat0
,
lon1
,
lat1
,
mapType
);
_totalSet
+=
set
;
}
if
(
_fetchElevation
)
{
QGCTileSet
set
=
QGCMapEngine
::
getTileCount
(
1
,
lon0
,
lat0
,
lon1
,
lat1
,
UrlFactory
::
AirmapElevation
);
_totalSet
+=
set
;
}
emit
tileX0Changed
();
emit
tileX1Changed
();
emit
tileY0Changed
();
...
...
src/TerrainTile.h
View file @
1f27b9f1
...
...
@@ -5,8 +5,6 @@
#include <QGeoCoordinate>
#define TERRAIN_TILE_SIZE 91
Q_DECLARE_LOGGING_CATEGORY
(
TerrainTileLog
)
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment