[core] Override default prefetch delta if source has it's own setting

This commit is contained in:
Alexander Shalamov
2020-02-10 22:29:11 +02:00
parent fce4129435
commit def38cf4db
9 changed files with 94 additions and 81 deletions

View File

@@ -765,15 +765,17 @@ public:
const bool needsRendering,
const bool needsRelayout,
const TileParameters& parameters) override {
tilePyramid.update(layers,
needsRendering,
needsRelayout,
parameters,
SourceType::Vector,
util::tileSize,
tileset.zoomRange,
tileset.bounds,
[&](const OverscaledTileID& tileID) { return std::make_unique<FakeTile>(*this, tileID); });
tilePyramid.update(
layers,
needsRendering,
needsRelayout,
parameters,
SourceType::Vector,
util::tileSize,
tileset.zoomRange,
tileset.bounds,
[&](const OverscaledTileID& tileID) { return std::make_unique<FakeTile>(*this, tileID); },
baseImpl->getPrefetchZoomDelta());
}
const optional<Tileset>& getTileset() const override {