How to enable the feature the "Street view"? #460
Unanswered
kaiquefelipe
asked this question in
Q&A
Replies: 1 comment
-
We haven't added any components or hooks for this yet. Can you describe your use-case (how will users interact with the StreetView feature) a bit more? Maybe we can provide some helpers for your use-case with the library. Generally, all the features from the maps API are available to the react-library as well. So, you should be able to enable the PegMan (the yellow figure) button using the Programmatic access to StreetView will be possible on the map instance, using the const map = useMap();
useEffect(() => {
if (!map) return;
const sv = map.getStreetView();
sv.setPosition(streetviewCoordinates);
sv.setPov({ heading: 265, pitch: 0 });
sv.setVisible(true);
}, [map]); |
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
-
How can I activate the “Street View” feature? to allow you to navigate the streets.
Can you help me?
Similar with the action the attach below.
Beta Was this translation helpful? Give feedback.
All reactions