diff --git a/examples/tile-transitions.html b/examples/tile-transitions.html index 2f9cd339a5..ae366f9a93 100644 --- a/examples/tile-transitions.html +++ b/examples/tile-transitions.html @@ -4,7 +4,7 @@ title: Tile Transitions shortdesc: Custom configuration for opacity transitions on tiles. docs: > By default tiles are rendered with an opacity transition - fading in over - 275 ms. To disable this behavior, set the transition option + 250 ms. To disable this behavior, set the transition option of the tile source to 0. tags: "fade, transition" --- diff --git a/externs/olx.js b/externs/olx.js index 7b2ba7a67d..49e539ad2c 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -472,7 +472,7 @@ olx.TileOptions; /** * A duration for tile opacity transitions. By default, tiles will render with - * an opacity transition that lasts 275 ms. To change the duration, pass a + * an opacity transition that lasts 250 ms. To change the duration, pass a * number in milliseconds. A duration of 0 disables the opacity transition. * @type {number|undefined} * @api diff --git a/src/ol/tile.js b/src/ol/tile.js index 0c56b0d1d7..4c2381d12d 100644 --- a/src/ol/tile.js +++ b/src/ol/tile.js @@ -55,7 +55,7 @@ ol.Tile = function(tileCoord, state, opt_options) { * @type {number} */ this.transition_ = options.transition === undefined ? - 275 : options.transition; + 250 : options.transition; /** * Lookup of start times for rendering transitions. If the start time is diff --git a/test/spec/ol/tile.test.js b/test/spec/ol/tile.test.js index 6bede73d68..8e25c9356f 100644 --- a/test/spec/ol/tile.test.js +++ b/test/spec/ol/tile.test.js @@ -9,7 +9,7 @@ describe('ol.Tile', function() { it('sets a default transition', function() { var coord = [0, 0, 0]; var tile = new ol.Tile(coord, ol.TileState.IDLE); - expect(tile.transition_).to.equal(275); + expect(tile.transition_).to.equal(250); }); it('allows the transition to be set', function() {