Replies: 1 comment
-
|
Yes, you can customize addressControls! The <StreetViewPanorama
position={position}
options={{
addressControlOptions: {
position: google.maps.ControlPosition.BOTTOM_CENTER,
},
}}
/>If you need more control over visibility/behavior, you can also get the panorama instance via const panorama = useStreetView();
if (panorama) {
panorama.setOptions({
addressControlOptions: { position: ... }
});
}You can control position, visibility, and other properties through the options object. The library passes these through to the underlying Google Maps Street View implementation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I'm using the

<Map>component and I want to customize the position of the address controls when the user enters Street View by dragging the stickman onto the map.Right now I don't see any props for that in
<Map>, so I want to ask here if there is any way to do that.According to Google documents, the address controls can be customized in a StreetViewPanorama instance
Beta Was this translation helpful? Give feedback.
All reactions