Skip to content

Commit

Permalink
Allow worker_tile to parse the tile for a fractional zoom level even …
Browse files Browse the repository at this point in the history
…if it is hidden at the current zoom.
  • Loading branch information
Asheem Mamoowala committed Jul 25, 2017
1 parent 7bbf489 commit 631315d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/source/worker_tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type TileCoord from './tile_coord';
import type SymbolBucket from '../data/bucket/symbol_bucket';
import type {Actor} from '../util/actor';
import type StyleLayerIndex from '../style/style_layer_index';
import type StyleLayer from '../style/style_layer';
import type {
WorkerTileParameters,
WorkerTileCallback,
Expand Down Expand Up @@ -93,8 +94,8 @@ class WorkerTile {
const layer = family[0];

assert(layer.source === this.source);

if (layer.minzoom && this.zoom < layer.minzoom) continue;
const layerMinzoom = layer.minzoom;
if (layerMinzoom && Math.ceil(this.zoom) < layerMinzoom) continue;
if (layer.maxzoom && this.zoom >= layer.maxzoom) continue;
if (layer.layout && layer.layout.visibility === 'none') continue;

Expand Down

0 comments on commit 631315d

Please sign in to comment.