The loader class takes care of loading raw vector tile data from a tile source.
More...
#include <qgsvectortileloader.h>
|
static QList< QgsVectorTileRawData > | blockingFetchTileRawData (const QString &sourceType, const QString &sourcePath, const QgsTileMatrix &tileMatrix, const QPointF &viewCenter, const QgsTileRange &range, const QString &authid, const QgsHttpHeaders &headers, QgsFeedback *feedback=nullptr) |
| Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched. More...
|
|
static QByteArray | loadFromMBTiles (const QgsTileXYZ &id, QgsMbTiles &mbTileReader, QgsFeedback *feedback=nullptr) |
| Returns raw tile data for a single tile loaded from MBTiles file. More...
|
|
static QByteArray | loadFromNetwork (const QgsTileXYZ &id, const QgsTileMatrix &tileMatrix, const QString &requestUrl, const QString &authid, const QgsHttpHeaders &headers, QgsFeedback *feedback=nullptr) |
| Returns raw tile data for a single tile, doing a HTTP request. Block the caller until tile data are downloaded. More...
|
|
static QByteArray | loadFromVtpk (const QgsTileXYZ &id, QgsVtpkTiles &vtpkTileReader) |
| Returns raw tile data for a single tile loaded from VTPK file. More...
|
|
The loader class takes care of loading raw vector tile data from a tile source.
- Since
- QGIS 3.14
Definition at line 60 of file qgsvectortileloader.h.
◆ QgsVectorTileLoader()
Constructs tile loader for doing asynchronous requests and starts network requests.
Definition at line 33 of file qgsvectortileloader.cpp.
◆ ~QgsVectorTileLoader()
QgsVectorTileLoader::~QgsVectorTileLoader |
( |
| ) |
|
◆ blockingFetchTileRawData()
Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched.
Definition at line 175 of file qgsvectortileloader.cpp.
◆ downloadBlocking()
void QgsVectorTileLoader::downloadBlocking |
( |
| ) |
|
Blocks the caller until all asynchronous requests are finished (with a success or a failure)
Definition at line 70 of file qgsvectortileloader.cpp.
◆ error()
QString QgsVectorTileLoader::error |
( |
| ) |
const |
◆ loadFromMBTiles()
◆ loadFromNetwork()
Returns raw tile data for a single tile, doing a HTTP request. Block the caller until tile data are downloaded.
Definition at line 220 of file qgsvectortileloader.cpp.
◆ loadFromVtpk()
◆ tileRequestFinished
Emitted when a tile request has finished. If a tile request has failed, the returned raw tile byte array is empty.
The documentation for this class was generated from the following files: