16#ifndef QGSVECTORTILELOADER_H
17#define QGSVECTORTILELOADER_H
43 : id( tileID ), tileGeometryId( tileID ), data( { { QString(), data } } ) {}
47 : id( tileID ), tileGeometryId( tileID ), data( data ) {}
63 QMap<QString, QByteArray>
data;
79 static QList<QgsVectorTileRawData> blockingFetchTileRawData(
82 const QPointF &viewCenter,
98 void downloadBlocking();
101 QString error()
const;
107 void tileReplyFinished();
116 std::unique_ptr<QEventLoop> mEventLoop;
121 QHash<QgsTileXYZ, QList<QgsTileDownloadManagerReply *>> mReplies;
124 QHash<QgsTileXYZ, QMap<QString, QByteArray>> mPendingRawData;
RendererUsage
Usage of the renderer.
@ Unknown
Renderer used for unknown usage.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Reply object for tile download manager requests returned from calls to QgsTileDownloadManager::get().
Defines a set of tile matrices for multiple zoom levels.
Range of tiles in a tile matrix to be rendered.
Stores coordinates of a tile in a tile matrix set.
Base class for vector tile layer data providers.
The loader class takes care of loading raw vector tile data from a tile source.
void tileRequestFinished(const QgsVectorTileRawData &rawTile)
Emitted when a tile request has finished. If a tile request has failed, the returned raw tile byte ar...
Keeps track of raw tile data from one or more sources that need to be decoded.
QMap< QString, QByteArray > data
Raw tile data by source ID.
QgsVectorTileRawData(QgsTileXYZ tileID=QgsTileXYZ(), const QByteArray &data=QByteArray())
Constructs a raw tile object for single source.
QgsTileXYZ id
Tile position in tile matrix set.
QgsTileXYZ tileGeometryId
Tile id associated with the raw tile data.
QgsVectorTileRawData(QgsTileXYZ tileID, const QMap< QString, QByteArray > &data)
Constructs a raw tile object for one or more sources.