Skip to main content

Function: useMap()

useMap(options?): object

Defined in: useMap.ts:6

Parameters

ParameterType
optionsMapOptions

Returns

map

map: Map | null

Returns the map object which provides access to the Google Maps API.

ref

ref: MutableRefObject<HTMLDivElement | null>

Returns the ref object which provides access to the HTMLDivElement element that the map is rendered in.