Merge pull request #24110 from yairtawil/master

fix(openlayers): add transition property
This commit is contained in:
Armando Aguirre
2018-03-06 12:34:45 -08:00
committed by GitHub
2 changed files with 15 additions and 6 deletions

View File

@@ -13517,7 +13517,8 @@ declare module olx {
* tileUrlFunction: (ol.TileUrlFunctionType|undefined),
* url: (string|undefined),
* urls: (Array.<string>|undefined),
* wrapX: (boolean|undefined)}}
* wrapX: (boolean|undefined),
* transition: (number|undefined)}}
*/
interface TileImageOptions {
attributions?: ol.AttributionLike;
@@ -13536,6 +13537,7 @@ declare module olx {
url?: string;
urls?: string[];
wrapX?: boolean;
transition?: number;
}
/**
@@ -13806,8 +13808,9 @@ declare module olx {
* reprojectionErrorThreshold: (number|undefined),
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
* url: (string|undefined),
* urls: (Array.<string>|undefined),
* wrapX: (boolean|undefined)}}
* wrapX: (boolean|undefined),
* transition: (number|undefined),
* urls: (Array.<string>|undefined)}}
*/
interface TileArcGISRestOptions {
attributions?: ol.AttributionLike;
@@ -13821,6 +13824,7 @@ declare module olx {
tileLoadFunction?: ol.TileLoadFunctionType;
url?: string;
wrapX?: boolean;
transition?: number;
urls?: string[];
}
@@ -13832,7 +13836,8 @@ declare module olx {
* reprojectionErrorThreshold: (number|undefined),
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
* url: string,
* wrapX: (boolean|undefined)}}
* wrapX: (boolean|undefined),
* transition: (number|undefined)}}
*/
interface TileJSONOptions {
attributions?: ol.AttributionLike;
@@ -13843,6 +13848,7 @@ declare module olx {
tileLoadFunction?: ol.TileLoadFunctionType;
url: string;
wrapX?: boolean;
transition?: number;
}
/**
@@ -13860,7 +13866,8 @@ declare module olx {
* tileLoadFunction: (ol.TileLoadFunctionType|undefined),
* url: (string|undefined),
* urls: (Array.<string>|undefined),
* wrapX: (boolean|undefined)}}
* wrapX: (boolean|undefined),
* transition: (number|undefined)}}
*/
interface TileWMSOptions {
attributions?: ol.AttributionLike;
@@ -13878,6 +13885,7 @@ declare module olx {
url?: string;
urls?: string[];
wrapX?: boolean;
transition?: number;
}
/**

View File

@@ -638,7 +638,8 @@ let tileWMS: ol.source.TileWMS = new ol.source.TileWMS({
params: {},
projection,
serverType: stringValue,
url: stringValue
url: stringValue,
transition: 0.5
});
// test without projection