-
Notifications
You must be signed in to change notification settings - Fork 73
Description
defaultUIHidden and mode, at the very least, are not reflected in the current types. defaultLabelsDisabled is still offered, but no longer exists.
Yes, that is true. But it's also not an issue of this library.
There are several open issues about that here: https://issuetracker.google.com/issues?q=status:open%20componentid:188853%20@types%2Fgoogle.maps and upvoting those can't be a bad idea.
I know that updated type definitions are being worked on, but I can't say when they will get published.
In the meantime, what I do is create my own types with only the newer stuff I need typed correctly.
For an example, see here: https://github.com/usefulthink/react-google-maps/blob/feat/internal-usage-attribution-ids/types/google.maps.d.ts
The steps for this are:
- create a file
./types/google.maps.d.tsin your project - at the top of that file, ad…