Skip to main content

Function: useGoogleMaps()

useGoogleMaps(): object

Defined in: useGoogleMaps.ts:11

Returns the status of the Google Maps API and the google object which provides access to the Google Maps API.

Returns​

object

An object containing the API status and the google object.

google​

google: { maps: typeof maps; } | { maps: null; }

isReady​

isReady: boolean

status​

status: "loading" | "idle" | "ready" | "error"