diff --git a/examples/color-manipulation.js b/examples/color-manipulation.js index 0d6aaeeeb6..e249762850 100644 --- a/examples/color-manipulation.js +++ b/examples/color-manipulation.js @@ -100,8 +100,7 @@ function xyz2rgb(x) { const raster = new RasterSource({ sources: [new Stamen({ - layer: 'watercolor', - transition: 0 + layer: 'watercolor' })], operation: function(pixels, data) { const hcl = rgb2hcl(pixels[0]); diff --git a/examples/sea-level.js b/examples/sea-level.js index 00e9e09de9..7217a3fcba 100644 --- a/examples/sea-level.js +++ b/examples/sea-level.js @@ -24,8 +24,7 @@ function flood(pixels, data) { const key = 'pk.eyJ1IjoidHNjaGF1YiIsImEiOiJjaW5zYW5lNHkxMTNmdWttM3JyOHZtMmNtIn0.CDIBD8H-G2Gf-cPkIuWtRg'; const elevation = new XYZ({ url: 'https://api.mapbox.com/v4/mapbox.terrain-rgb/{z}/{x}/{y}.pngraw?access_token=' + key, - crossOrigin: 'anonymous', - transition: 0 + crossOrigin: 'anonymous' }); const raster = new RasterSource({ diff --git a/examples/shaded-relief.js b/examples/shaded-relief.js index 278fb4f022..f0e2c4f796 100644 --- a/examples/shaded-relief.js +++ b/examples/shaded-relief.js @@ -100,8 +100,7 @@ function shade(inputs, data) { const elevation = new XYZ({ url: 'https://{a-d}.tiles.mapbox.com/v3/aj.sf-dem/{z}/{x}/{y}.png', - crossOrigin: 'anonymous', - transition: 0 + crossOrigin: 'anonymous' }); const raster = new Raster({ diff --git a/src/ol/source/Raster.js b/src/ol/source/Raster.js index 7367cf0cbc..558e426d96 100644 --- a/src/ol/source/Raster.js +++ b/src/ol/source/Raster.js @@ -288,8 +288,7 @@ class RasterSource extends ImageSource { frameState.focus = center; frameState.size[0] = Math.round(getWidth(extent) / resolution); frameState.size[1] = Math.round(getHeight(extent) / resolution); - frameState.time = Date.now(); - frameState.animate = false; + frameState.time = Infinity; const viewState = frameState.viewState; viewState.center = center;