[core] cache raster tiles

This commit is contained in:
Konstantin Käfer
2016-11-16 15:03:05 +01:00
committed by Jesse Bounds
parent 307f8e4f41
commit 8fa078c086

View File

@@ -137,7 +137,7 @@ void Source::Impl::updateTiles(const UpdateParameters& parameters) {
algorithm::updateRenderables(getTileFn, createTileFn, retainTileFn, renderTileFn,
idealTiles, zoomRange, tileZoom);
if (type != SourceType::Raster && type != SourceType::Annotations && cache.getSize() == 0) {
if (type != SourceType::Annotations && cache.getSize() == 0) {
size_t conservativeCacheSize =
((float)parameters.transformState.getWidth() / util::tileSize) *
((float)parameters.transformState.getHeight() / util::tileSize) *