react-google-maps icon indicating copy to clipboard operation
react-google-maps copied to clipboard

docs(example): use externally loaded google maps api

Open mdogadailo opened this issue 5 months ago • 4 comments

This pull request adds support for using a Client ID in addition to the existing apiKey for the APIProvider component.

While Google recommends using an apiKey for most users, there are specific scenarios and legacy systems where an enterprise clientId is necessary or beneficial such as specific contractual or billing arrangements.

Component Changes:

  • Modified APIProviderProps to support either apiKey or clientId, but not both simultaneously.
  • Updated useGoogleMapsApiLoader to handle clientId in addition to apiKey.

Documentation Updates:

  • Updated docs/api-reference/components/api-provider.md to include information about the new clientId prop and its usage.

Testing:

  • Added a new test case to ensure clientId is correctly passed to GoogleMapsAPILoader.

mdogadailo avatar Sep 05 '24 13:09 mdogadailo