From d474b990d30fec1aec2fd89e421158a58c91fc61 Mon Sep 17 00:00:00 2001 From: Kai Date: Tue, 23 Jul 2019 21:37:17 +0200 Subject: [PATCH] [@types/mapbox-gl] Add Map.triggerRepaint (#37071) * [@types/mapbox-gl] Add Map.triggerRepaint * [@types/mapbox-gl] fix indentation style --- types/mapbox-gl/index.d.ts | 2 ++ types/mapbox-gl/mapbox-gl-tests.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/types/mapbox-gl/index.d.ts b/types/mapbox-gl/index.d.ts index 67003f8dd4..8473b5a263 100644 --- a/types/mapbox-gl/index.d.ts +++ b/types/mapbox-gl/index.d.ts @@ -162,6 +162,8 @@ declare namespace mapboxgl { remove(): void; + triggerRepaint(): void; + showTileBoundaries: boolean; showCollisionBoxes: boolean; diff --git a/types/mapbox-gl/mapbox-gl-tests.ts b/types/mapbox-gl/mapbox-gl-tests.ts index fdd7a66868..a4de99236b 100644 --- a/types/mapbox-gl/mapbox-gl-tests.ts +++ b/types/mapbox-gl/mapbox-gl-tests.ts @@ -542,6 +542,8 @@ expectType(map.fitScreenCoordinates([0, 0], pointlike, 1)); expectType(map.fitScreenCoordinates([0, 0], pointlike, 1, cameraOpts)); expectType(map.fitScreenCoordinates([0, 0], pointlike, 1, cameraOpts, { key: 'value' })); +expectType(map.triggerRepaint()); + /* * Map Events */