Avoid unnecessary transition on raster sources

This commit is contained in:
Tim Schaub
2017-10-09 18:12:40 -06:00
parent 177fcc7bcc
commit 623dcd881f
3 changed files with 6 additions and 3 deletions

View File

@@ -102,7 +102,8 @@ function xyz2rgb(x) {
var raster = new ol.source.Raster({
sources: [new ol.source.Stamen({
layer: 'watercolor'
layer: 'watercolor',
transition: 0
})],
operation: function(pixels, data) {
var hcl = rgb2hcl(pixels[0]);