Skip to content

Commit

Permalink
Remove completely preload param on ol.layer.Tile (#3583)
Browse files Browse the repository at this point in the history
* Can set preload value of Tiles (default to 0)

* Remove completely preload param on ol.layer.Tile
  • Loading branch information
ger-benjamin authored Feb 27, 2018
1 parent ef5b2da commit 8e06975
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/services/layerHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 8e06975

Please sign in to comment.