From d0126e8949223db0937354a7d1c7210b7a6d54c7 Mon Sep 17 00:00:00 2001 From: davidsastresas Date: Wed, 14 Jun 2023 21:26:15 +0200 Subject: [PATCH] prov commit, current work in progress --- src/QtLocationPlugin/QGCMapTileSet.h | 1 + src/QtLocationPlugin/QMLControl/OfflineMap.qml | 1 + src/Terrain/TerrainQuery.cc | 2 ++ src/elevation providers dev notes.md | 1 + 4 files changed, 5 insertions(+) create mode 100644 src/elevation providers dev notes.md diff --git a/src/QtLocationPlugin/QGCMapTileSet.h b/src/QtLocationPlugin/QGCMapTileSet.h index 8b7ea662658a..9330522d42af 100644 --- a/src/QtLocationPlugin/QGCMapTileSet.h +++ b/src/QtLocationPlugin/QGCMapTileSet.h @@ -106,6 +106,7 @@ class QGCCachedTileSet : public QObject QString type () { return _type; } bool complete () const{ return _defaultSet || (_totalTileCount <= _savedTileCount); } bool defaultSet () const{ return _defaultSet; } + // This is ugly as fuck. almost same name as the setter, must do something quint64 setID () const{ return _id; } bool deleting () const{ return _deleting; } bool downloading () const{ return _downloading; } diff --git a/src/QtLocationPlugin/QMLControl/OfflineMap.qml b/src/QtLocationPlugin/QMLControl/OfflineMap.qml index b6a3d83ac324..4d4128dbf790 100644 --- a/src/QtLocationPlugin/QMLControl/OfflineMap.qml +++ b/src/QtLocationPlugin/QMLControl/OfflineMap.qml @@ -519,6 +519,7 @@ Item { horizontalAlignment: Text.AlignHCenter } //-- Tile Sets + // need to manage here as well Row { spacing: ScreenTools.defaultFontPixelWidth anchors.horizontalCenter: parent.horizontalCenter diff --git a/src/Terrain/TerrainQuery.cc b/src/Terrain/TerrainQuery.cc index 41fec6782ed7..db9a135f9c16 100644 --- a/src/Terrain/TerrainQuery.cc +++ b/src/Terrain/TerrainQuery.cc @@ -33,6 +33,8 @@ QGC_LOGGING_CATEGORY(TerrainQueryVerboseLog, "TerrainQueryVerboseLog") Q_GLOBAL_STATIC(TerrainAtCoordinateBatchManager, _TerrainAtCoordinateBatchManager) Q_GLOBAL_STATIC(TerrainTileManager, _terrainTileManager) +// All this file needs to be reviewed, a lot of stuff here saying airmap + TerrainAirMapQuery::TerrainAirMapQuery(QObject* parent) : TerrainQueryInterface(parent) { diff --git a/src/elevation providers dev notes.md b/src/elevation providers dev notes.md new file mode 100644 index 000000000000..8fc44db417ae --- /dev/null +++ b/src/elevation providers dev notes.md @@ -0,0 +1 @@ +- we should test the latest stuff done over QGCMapTileset, moving serializefromairmapjson to map provider. play around with offline maps etc to verify \ No newline at end of file