Skip to content

Commit

Permalink
Add check for layer visibility when cellEnter is called. (Esri#924)
Browse files Browse the repository at this point in the history
* Add check for layer visibility when cellEnter is called.

* Add check for layer visibility when cellEnter is called.
  • Loading branch information
keithpower authored and jgravois committed Feb 18, 2017
1 parent 1946120 commit 4a1b6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layers/FeatureLayer/FeatureLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export var FeatureLayer = FeatureManager.extend({
},

cellEnter: function (bounds, coords) {
if (!this._zooming && this._map) {
if (this._visibleZoom() && !this._zooming && this._map) {
L.Util.requestAnimFrame(L.Util.bind(function () {
var cacheKey = this._cacheKey(coords);
var cellKey = this._cellCoordsToKey(coords);
Expand Down

0 comments on commit 4a1b6cf

Please sign in to comment.