Skip to content

Commit

Permalink
Merge pull request Esri#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 committed Jun 15, 2017
2 parents 4005da4 + 4e8d520 commit 3b9d567
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 3b9d567

Please sign in to comment.