-
Notifications
You must be signed in to change notification settings - Fork 131
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
Map returned undefined #342
Comments
Hmm, apparently it's trying to dispatch the first map-events before the map is ready. See here: react-google-maps/src/components/map/use-map-events.ts Lines 103 to 109 in 904b918
That might have something to do with using defaultBounds instead of center/zoom. Can you try if it works when you specify defaultCenter/defaultZoom? |
For index.modern.mjs:689 <Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds` for for index.modern.mjs:361 [createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at ... In summary: when I'm using ...... er (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds` is a little misleading ;) and there should be info about providing " |
that seems to be an error. It should be either But the error disappearing when using center/zoom verifies that I need to test with just I think I will add another event-type for the |
That was easier than thought, I think this should already fix the error you are seeing: #346 |
Description
It says to report an issue, so i'm reporting one 😅 .
What should I provide?
My current map setup
Steps to Reproduce
none rn
Environment
"@vis.gl/react-google-maps": "^0.10.0",
weekly
124.0.6367.78
Linux
Logs
No response
The text was updated successfully, but these errors were encountered: