Open msreekm opened 6 years ago
There are no examples but I guess you could hack it together. Streetview is a feature of the normal maps and you can load it with dragging the little person around. This library is only meant to handle basic Maps JavaScript API
https://developers.google.com/maps/documentation/javascript/streetview
i dont want to click or drag, basically load the map with streetview.
There is an available method that can be your starting point. Within the component that you use, look closer at this.props.google.maps.StreetViewPanorama
https://developers.google.com/maps/documentation/javascript/examples/streetview-service
You just need to pass streetViewControl
to the main component:
<Map
ref='map'
google={window.google}
streetViewControl
...
/>
Is it possible to load google-maps-react with streetview as the default ? any examples?