google-maps-react icon indicating copy to clipboard operation
google-maps-react copied to clipboard

How to select default mapTypeId.

Open AxeemHaider opened this issue 4 years ago • 2 comments

Google Maps allow to modify the style of map even there is option to add cloud based map styling. How can I select default map type e.g "satellite"

https://developers.google.com/maps/documentation/javascript/maptypes

AxeemHaider avatar Aug 06 '20 08:08 AxeemHaider

@AxeemHaider You can pass the prop "mapType" to the Map component (unfortunately it's not typed in the IMapProps interface):

<Map google={this.props.google} zoom={14} mapType="satellite" />

SalemC avatar Aug 20 '20 12:08 SalemC

<Map google={google} mapType="satellite" centerAroundCurrentLocation />

pablojr17 avatar Jan 23 '21 18:01 pablojr17