Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getCanvasContainer to types #2356

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

georgemoon
Copy link

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
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.

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