visgl / react-map-gl

React friendly API wrapper around MapboxGL JS
http://visgl.github.io/react-map-gl/
Other
7.88k stars 1.36k forks source link

Add getCanvasContainer to types #2356

Open georgemoon opened 9 months ago

georgemoon commented 9 months ago

Both MapLibre GL and Mapbox GL have a function 'getCanvasContainer':

I would like to suggest that it be added to the types if possible. The attached is a simple pull request adding this type.

Thanks!

georgemoon commented 9 months ago

The type was being exposed in the context of using "useControl" from "react-map-gl/maplibre". I can see if I can do a minimal replication of the bug if that would be useful?

Pessimistress commented 9 months ago

I see. Yes, that would be a bug.