From 8e069755c383d3b713eb684dcf6a6d51f4814878 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 27 Feb 2018 14:39:34 +0100 Subject: [PATCH] Remove completely preload param on ol.layer.Tile (#3583) * Can set preload value of Tiles (default to 0) * Remove completely preload param on ol.layer.Tile --- src/services/layerHelper.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/services/layerHelper.js b/src/services/layerHelper.js index 084fdb9aacea..4a90e0a86337 100644 --- a/src/services/layerHelper.js +++ b/src/services/layerHelper.js @@ -114,9 +114,7 @@ ngeo.LayerHelper.prototype.createBasicWMSLayer = function(sourceURL, */ ngeo.LayerHelper.prototype.createWMTSLayerFromCapabilitites = function(capabilitiesURL, layerName, opt_matrixSet, opt_dimensions) { const parser = new ol.format.WMTSCapabilities(); - const layer = new ol.layer.Tile({ - preload: Infinity - }); + const layer = new ol.layer.Tile(); const $q = this.$q_; return this.$http_.get(capabilitiesURL, {cache: true}).then((response) => {