QGIS API Documentation 3.41.0-Master (3291e9ff48b)
|
The loader class takes care of loading raw vector tile data from a tile source. More...
#include <qgsvectortileloader.h>
Signals | |
void | tileRequestFinished (const QgsVectorTileRawData &rawTile) |
Emitted when a tile request has finished. If a tile request has failed, the returned raw tile byte array is empty. | |
Public Member Functions | |
QgsVectorTileLoader (const QgsVectorTileDataProvider *provider, const QgsTileMatrixSet &tileMatrixSet, const QgsTileRange &range, int zoomLevel, const QPointF &viewCenter, QgsFeedback *feedback, Qgis::RendererUsage usage) | |
Constructs tile loader for doing asynchronous requests and starts network requests. | |
~QgsVectorTileLoader () | |
void | downloadBlocking () |
Blocks the caller until all asynchronous requests are finished (with a success or a failure) | |
QString | error () const |
Returns a eventual error that occurred during loading, void if no error. | |
Static Public Member Functions | |
static QList< QgsVectorTileRawData > | blockingFetchTileRawData (const QgsVectorTileDataProvider *provider, const QgsTileMatrixSet &tileMatrixSet, const QPointF &viewCenter, const QgsTileRange &range, int zoomLevel, QgsFeedback *feedback=nullptr, Qgis::RendererUsage usage=Qgis::RendererUsage::Unknown) |
Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched. | |
The loader class takes care of loading raw vector tile data from a tile source.
Definition at line 73 of file qgsvectortileloader.h.
QgsVectorTileLoader::QgsVectorTileLoader | ( | const QgsVectorTileDataProvider * | provider, |
const QgsTileMatrixSet & | tileMatrixSet, | ||
const QgsTileRange & | range, | ||
int | zoomLevel, | ||
const QPointF & | viewCenter, | ||
QgsFeedback * | feedback, | ||
Qgis::RendererUsage | usage | ||
) |
Constructs tile loader for doing asynchronous requests and starts network requests.
Definition at line 28 of file qgsvectortileloader.cpp.
QgsVectorTileLoader::~QgsVectorTileLoader | ( | ) |
Definition at line 51 of file qgsvectortileloader.cpp.
|
static |
Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched.
Definition at line 171 of file qgsvectortileloader.cpp.
void QgsVectorTileLoader::downloadBlocking | ( | ) |
Blocks the caller until all asynchronous requests are finished (with a success or a failure)
Definition at line 63 of file qgsvectortileloader.cpp.
QString QgsVectorTileLoader::error | ( | ) | const |
Returns a eventual error that occurred during loading, void if no error.
Definition at line 164 of file qgsvectortileloader.cpp.
|
signal |
Emitted when a tile request has finished. If a tile request has failed, the returned raw tile byte array is empty.