teovillanueva / react-native-web-maps

Cross platform maps for react & react-native 🗺
https://teovillanueva.github.io/react-native-web-maps/
MIT License
54 stars 14 forks source link

feat: Added streetViewControl prop to the MapView, this will help to … #32

Open anwersolangi opened 11 months ago

anwersolangi commented 11 months ago

With this update, we can now hide the "Drag To StreetView" button by using the streetViewControl prop and setting it to false. This will get rid of the button that usually appears at the right corner of the screen, giving users a cleaner map interface. I've also added the prop in the documentation. Thanks

teovillanueva commented 10 months ago

Hey! Thanks for the contribution. I noticed that this is an option from the google lib. I think there is no need to add extra props and you can use the options prop which go directly to the google maps options prop!

anwersolangi commented 10 months ago

Hey! Thanks for the contribution. I noticed that this is an option from the google lib. I think there is no need to add extra props and you can use the options prop which go directly to the google maps options prop!

Yes, I this is an option, and can be supplied through options props, however when we provide option props to the MapView, we can't drag or move the map. That's why I added this as separate prop.