Skip to content

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

Open
anwersolangi wants to merge 1 commit intoteovillanueva:mainfrom
anwersolangi:main
Open

feat: Added streetViewControl prop to the MapView, this will help to …#32
anwersolangi wants to merge 1 commit intoteovillanueva:mainfrom
anwersolangi:main

Conversation

@anwersolangi
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Owner

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
Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants