diff --git a/lib/carto/tree/definition.js b/lib/carto/tree/definition.js index a81bf8c..40a670c 100644 --- a/lib/carto/tree/definition.js +++ b/lib/carto/tree/definition.js @@ -209,14 +209,13 @@ tree.Definition.prototype.toXML = function(env, existing) { }; tree.Definition.prototype.toJS = function(env) { - var DEFAULT_ZOOM_VALUE = 8388607; var shaderAttrs = {}; var frame_offset = this.frame_offset; var zoomFilter = "(" + this.zoom + " & (1 << ctx.zoom))"; var filters = [zoomFilter]; var originalFilters = this.filters.toJS(env); // Ignore default zoom for filtering (https://github.com/CartoDB/carto/issues/40) - var zoomFiltered = this.zoom !== DEFAULT_ZOOM_VALUE; + var zoomFiltered = this.zoom !== tree.Zoom.all; if (originalFilters) { filters.push(originalFilters);