From f75e7eb5cce3342524dfa523fdeda0cc9d1b6f67 Mon Sep 17 00:00:00 2001 From: YairTawil Date: Tue, 6 Mar 2018 16:41:48 +0200 Subject: [PATCH 1/2] fix(openlayers): add transition property --- types/openlayers/index.d.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/types/openlayers/index.d.ts b/types/openlayers/index.d.ts index a01f6b25ad..333ee0f621 100644 --- a/types/openlayers/index.d.ts +++ b/types/openlayers/index.d.ts @@ -13517,7 +13517,8 @@ declare module olx { * tileUrlFunction: (ol.TileUrlFunctionType|undefined), * url: (string|undefined), * urls: (Array.|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.|undefined), - * wrapX: (boolean|undefined)}} + * wrapX: (boolean|undefined), + * transition: (number|undefined), + * urls: (Array.|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.|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; } /** From fc945e7fe9190bd589ddf3d70894f1f501ced059 Mon Sep 17 00:00:00 2001 From: YairTawil Date: Tue, 6 Mar 2018 16:42:12 +0200 Subject: [PATCH 2/2] test(openlayers): test transition property on TileWMS --- types/openlayers/openlayers-tests.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/openlayers/openlayers-tests.ts b/types/openlayers/openlayers-tests.ts index 2d2d22d411..ce13ae8385 100644 --- a/types/openlayers/openlayers-tests.ts +++ b/types/openlayers/openlayers-tests.ts @@ -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