-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move serializeFromAirMapJson to map providers, from QGCMapTileSet:
We used to have in QGCMapTileSet::_networkReplyFinished() this serializeFromAirMapJson hardcoded to the airmap elevation string. Instead we added functions in urlFactory and map providers so we can understand from the map provider hash if such map provider needs its tiles to be serialized, and if so, we call the same provider to perform such serialization. This way the base MapProvider class returns by default that no serialization is needed, and the method to serialize just returns the same QByteArray ( we should never use this, it is just a sanity check ) Then in Airmap elevation map provider we override this, and we implement our own serialization method, which calls the TerrainTile method that was originally called from QGCMapTileSet. This way it is also more obvious when developing support for new elevation map providers, as the relevant methods are contained within the elevation map providers definition files
- Loading branch information
1 parent
fe3433a
commit 43a7098
Showing
6 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters