fix layer minZoom being ignored if not less than source maxZoom

This condition led to layers with high minzoom like oneway street
arrows (z15) get parsed and placed regardless of minzoom (e.g. z11+),
wasting a lot of worker CPU time.

It became unnecessary after we added reparsing tiles when overscaling,
and even before that it should have probably been <= rather than <.
This commit is contained in:
Vladimir Agafonkin
2015-10-06 13:58:38 +03:00
parent b869771992
commit 453fd4c0b0
4 changed files with 1 additions and 7 deletions

View File

@@ -22,7 +22,6 @@ VectorTileData::VectorTileData(const TileID& id_,
worker(style_.workers),
tileWorker(id_,
source_.source_id,
source_.max_zoom,
style_,
style_.layers,
state,