Back to 250 ms for the transition
This commit is contained in:
@@ -4,7 +4,7 @@ title: Tile Transitions
|
|||||||
shortdesc: Custom configuration for opacity transitions on tiles.
|
shortdesc: Custom configuration for opacity transitions on tiles.
|
||||||
docs: >
|
docs: >
|
||||||
By default tiles are rendered with an opacity transition - fading in over
|
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.
|
of the tile source to 0.
|
||||||
tags: "fade, transition"
|
tags: "fade, transition"
|
||||||
---
|
---
|
||||||
|
|||||||
+1
-1
@@ -472,7 +472,7 @@ olx.TileOptions;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A duration for tile opacity transitions. By default, tiles will render with
|
* 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.
|
* number in milliseconds. A duration of 0 disables the opacity transition.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
* @api
|
* @api
|
||||||
|
|||||||
+1
-1
@@ -55,7 +55,7 @@ ol.Tile = function(tileCoord, state, opt_options) {
|
|||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.transition_ = options.transition === undefined ?
|
this.transition_ = options.transition === undefined ?
|
||||||
275 : options.transition;
|
250 : options.transition;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup of start times for rendering transitions. If the start time is
|
* Lookup of start times for rendering transitions. If the start time is
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ describe('ol.Tile', function() {
|
|||||||
it('sets a default transition', function() {
|
it('sets a default transition', function() {
|
||||||
var coord = [0, 0, 0];
|
var coord = [0, 0, 0];
|
||||||
var tile = new ol.Tile(coord, ol.TileState.IDLE);
|
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() {
|
it('allows the transition to be set', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user