From 67ef589afadeb38a939216a3aee0f277cfc21827 Mon Sep 17 00:00:00 2001 From: Tim Deubler Date: Mon, 20 Nov 2023 14:04:04 +0100 Subject: [PATCH] improved ts declarations Signed-off-by: Tim Deubler --- packages/display/src/Map.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/display/src/Map.ts b/packages/display/src/Map.ts index c04a9fec6..6c892da51 100644 --- a/packages/display/src/Map.ts +++ b/packages/display/src/Map.ts @@ -40,7 +40,7 @@ import { GeoPoint, GeoRect, utils, - GeoJSONFeatureCollection, GeoJSONFeature, GeoJSONBBox, FeatureProvider, GeoJSONCoordinate as Point, CustomLayer + GeoJSONFeatureCollection, GeoJSONFeature, GeoJSONBBox, FeatureProvider, Layer, CustomLayer } from '@here/xyz-maps-core'; import {FlightAnimator} from './animation/FlightAnimator'; import Copyright from './ui/copyright/Copyright'; @@ -1322,7 +1322,7 @@ export class Map { * * @param layers - the layer(s) that should be refreshed/re-rendered. */ - refresh(layers?: TileLayer | TileLayer[]) { + refresh(layers?: TileLayer | Layer | (TileLayer|Layer)[]) { if (!(layers instanceof Array)) { layers = [layers]; }