Open vidyaramachandran56 opened 4 years ago
Key : mapTypeControlOptions ( add the s )
There is an issue with the mapTypeControlOptions type though.
Code below actually moves the mapTypeControls, but you get an invalid type error.
<Map google={this.props.google}
...
mapTypeControlOptions={{
style: window.google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
position: window.google.maps.ControlPosition.RIGHT_TOP
}}
>
Failed prop type: Invalid prop mapTypeControlOptions
of type object
supplied to Map
, expected boolean
Shouldn't type of mapTypeControlOptions be object instead of boolean ( same as streetviewControlOptions )
<Map
google={this.props.google}
mapTypeControlOption= {{ style: this.props.google.maps.MapTypeControlStyle.DROPDOWN_MENU, position: this.props.google.maps.ControlPosition.TOP_RIGHT } }/>
The satellite tab is neither moving to right nor taking dropdown.