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

Callback error #139

Open
dgwyer opened this issue Feb 23, 2023 · 1 comment
Open

Callback error #139

dgwyer opened this issue Feb 23, 2023 · 1 comment

Comments

@dgwyer
Copy link

dgwyer commented Feb 23, 2023

Just noticed this happening in the console.

More info here: https://stackoverflow.com/questions/75179573/how-to-fix-loading-the-google-maps-javascript-api-without-a-callback-is-not-supp

image

@dgwyer
Copy link
Author

dgwyer commented Feb 23, 2023

I guess it would be useful to be able to define this callback in the provider.

Maybe something like:

<GoogleMapProvider
  googleMapsAPIKey="1234"
  options={mapOptions}
  mapContainer={mapContainer}
  callback={()  => console.log("map loaded")}>
      <div ref={(node) => setMapContainer(node)} style={{ height: "100vh" }} />
</GoogleMapProvider>

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

No branches or pull requests

1 participant