Skip to content

Conversation

@georgemoon
Copy link
Contributor

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!

Copy link
Collaborator

@Pessimistress Pessimistress left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type is only used for internal type check. Map methods that are exposed to the user come from @types/mapbox-gl or maplibre-gl.

@georgemoon
Copy link
Contributor Author

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
Copy link
Collaborator

I see. Yes, that would be a bug.

@Pessimistress Pessimistress merged commit 7c1a287 into visgl:master Dec 19, 2024
1 check passed
@georgemoon georgemoon deleted the add_getCanvasContainer branch December 19, 2024 08:58
chrisgervang pushed a commit that referenced this pull request Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants