new Map()
The Map Component in the root component for the google maps library. It handles the interface between the google maps javascript api and the implementation of the other components.
- Source:
Properties:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
api-key |
string | Required. The javascript api key from your google console. |
||||||||||||||||||||||||
mapOptions |
object | Optional. A google.maps.MapOptions object. |
||||||||||||||||||||||||
props |
object |
Properties
|
Classes
Members
-
<static, constant> exports.ControlPosition
-
Import these Map Control positions by
import {ControlPosition} from 'google-react-maps'- Source:
Properties:
Name Type Description BOTTOM_CENTERenum BOTTOM_LEFTenum BOTTOM_RIGHTenum LEFT_BOTTOMenum LEFT_CENTERenum LEFT_TOPenum RIGHT_BOTTOMenum RIGHT_CENTERenum RIGHT_TOPenum TOP_CENTERenum TOP_LEFTenum TOP_RIGHTenum -
state
-
- Source:
Properties:
Name Type Description stateobject The Map component's internal state.
Properties
Name Type Description mapsobject A google maps javascript api reference.
_div_idobject The div id of this map.
Methods
-
getGeocoder()
-
Gets the instance of the geocoder tied to this google map.
- Source:
-
getGoogleMap()
-
Gets the google maps instance created by
new maps.Map()keyword.- Source:
-
getGoogleMapsApi()
-
Gets the google maps api reference from within the component. (Could be used to do google maps api stuff outside of the component)
- Source: