react-google-maps-api
react-google-maps-api copied to clipboard
Document API is not matching with source code
Issue template
The parameters of the useJsApiLoader() function were written at https://react-google-maps-api-docs.netlify.app/#usejsapiloader. There is existing a paramater is called googleMapsClientId but I can't find this param in the source code. I think we can't use the googleMapsClientId at the useJsApiLoader() and it will be use at the useLoadScript() function.
Please provide an explanation
. The useJsApiLoader() function
declare function useJsApiLoader({ id, version, nonce, googleMapsApiKey, language, region, libraries, preventGoogleFontsLoading, mapIds, }: UseLoadScriptOptions): {
isLoaded: boolean;
loadError: Error | undefined;
};
. The useLoadScript() function
declare function useLoadScript({ id, version, nonce, googleMapsApiKey, googleMapsClientId, language, region, libraries, preventGoogleFontsLoading, channel, mapIds, }: UseLoadScriptOptions$1): {
isLoaded: boolean;
loadError: Error | undefined;
url: string;
};
Your Environment
OS: MAC Big Sur 13
Node Version: v16.9.1
react version: 16.13.1
@babel version: 7.11.6
@react-google-maps/api version: 2.4.1
How is it behave?
In case I use the param googleMapsClientId into the useJsApiLoader() function as document API then it is not working correctly.
How should it behave correctly?
I should be update at documenet api correctly base on the useJsApiLoader() function into source.
basic implementation of incorrect behavior in codesandbox.com
Nothing