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_CENTER
enum BOTTOM_LEFT
enum BOTTOM_RIGHT
enum LEFT_BOTTOM
enum LEFT_CENTER
enum LEFT_TOP
enum RIGHT_BOTTOM
enum RIGHT_CENTER
enum RIGHT_TOP
enum TOP_CENTER
enum TOP_LEFT
enum TOP_RIGHT
enum -
state
-
- Source:
Properties:
Name Type Description state
object The Map component's internal state.
Properties
Name Type Description maps
object A google maps javascript api reference.
_div_id
object 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: