I
I
Igor Miroshkin2020-03-10 21:21:22
Google Maps
Igor Miroshkin, 2020-03-10 21:21:22

How to add options for @react-google-maps/api?

<
GeoMapComponent
mapId = "test"
mapContainerStyle = {
    this.mapContainerStyle
}
zoom = {
    this.mapZoom
}
center = {
    this.mapCenter
}
options = {
        {
            fullscreenControlOptions: {
                position: google.maps.ControlPosition.RIGHT_BOTTOM
            }
        }
    } >

Swears at google, says isn't defined. Maybe someone faced the same problem? For google, @react-google-maps/api - doesn't suggest anything else to put

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Ganin, 2020-03-16
@dohera

The npm examples say window.google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question