Back to 250 ms for the transition

This commit is contained in:
Tim Schaub
2017-09-25 21:43:40 -07:00
parent 8033e25663
commit 3161e5bbaf
4 changed files with 4 additions and 4 deletions

View File

@@ -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 <code>transition</code> option
250 ms. To disable this behavior, set the <code>transition</code> option
of the tile source to 0.
tags: "fade, transition"
---

View File

@@ -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

View File

@@ -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

View File

@@ -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() {