mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-25 16:02:50 +00:00
Add getCanvasContainer to types (#2356)
Co-authored-by: Xiaoji Chen <Pessimistress@users.noreply.github.com>
This commit is contained in:
parent
424b516562
commit
ec7f8bf6e4
@ -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<MapT extends MapInstance> {
|
||||
supported?: (options: any) => boolean;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user