Skip to content

Commit

Permalink
Merge pull request #964 from jordanparfitt/jordanparfitt-zoom-patch
Browse files Browse the repository at this point in the history
added conditional check to avoid reloading features outside a constrained zoom level when new SQL filters are applied.
  • Loading branch information
jgravois authored Jun 15, 2017
2 parents 3619f48 + 12cf18b commit 0da3cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layers/FeatureLayer/FeatureManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export var FeatureManager = VirtualGrid.extend({

pendingRequests--;

if (pendingRequests <= 0) {
if (pendingRequests <= 0 && this._visibleZoom()) {
this._currentSnapshot = newSnapshot;
// schedule adding features for the next animation frame
Util.requestAnimFrame(Util.bind(function () {
Expand Down

0 comments on commit 0da3cf7

Please sign in to comment.