React hook to get the Google Maps map instance.
import React from 'react';
import {useGoogleMap} from '@ubilabs/google-maps-react-hooks';
const MyComponent = () => {
const map = useGoogleMap();
// Do something with the Google Maps map instance
return (...);
};
Returns a Google Maps map instance to use directly.
Type: GoogleMapContextType
:
google.maps.Map