[core] Added modified, expires information to TileData
This commit is contained in:
@@ -25,7 +25,7 @@ RasterTileData::~RasterTileData() {
|
||||
}
|
||||
|
||||
void RasterTileData::request(float pixelRatio,
|
||||
const std::function<void()>& callback) {
|
||||
const RasterTileData::Callback& callback) {
|
||||
std::string url = source.tileURL(id, pixelRatio);
|
||||
state = State::loading;
|
||||
|
||||
@@ -55,6 +55,9 @@ void RasterTileData::request(float pixelRatio,
|
||||
state = State::loaded;
|
||||
}
|
||||
|
||||
modified = res.modified;
|
||||
expires = res.expires;
|
||||
|
||||
workRequest = worker.parseRasterTile(std::make_unique<RasterBucket>(texturePool), res.data, [this, callback] (RasterTileParseResult result) {
|
||||
workRequest.reset();
|
||||
if (state != State::loaded) {
|
||||
|
||||
Reference in New Issue
Block a user