From ec7f8bf6e41e296d24cffa0cd775ac58b71aec88 Mon Sep 17 00:00:00 2001 From: George Moon Date: Thu, 19 Dec 2024 08:38:22 +0100 Subject: [PATCH] Add getCanvasContainer to types (#2356) Co-authored-by: Xiaoji Chen --- src/types/lib.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types/lib.ts b/src/types/lib.ts index ac20ab405..5ebdfbcbb 100644 --- a/src/types/lib.ts +++ b/src/types/lib.ts @@ -77,6 +77,8 @@ export interface MapInstance extends Evented { getCanvas(): HTMLCanvasElement; + getCanvasContainer(): HTMLElement; + remove(): void; triggerRepaint(): void; @@ -182,7 +184,7 @@ export interface ScaleControlInstance extends IControl { /** * A user-facing type that represents the minimal intersection between Mapbox and Maplibre * User provided `mapLib` is supposed to implement this interface - * Only losely typed for compatibility + * Only loosely typed for compatibility */ export interface MapLib { supported?: (options: any) => boolean;