mllm
mllm

Reputation: 17448

Google Street View for iOS with device orientation / gyroscope sensor

Is there an easy way to make in iOS Google Street View GMSPanormaView's camera follow the device's orientation via data from its motion sensors?

If not, has anyone already done it and can share a code snippet that takes data from CoreMotion, maybe manipulates it to create GMSPanoramaCamera, and passes it to the GMSPanoramaView with animateToCamera:animationDuration:?

Any relevant Android code would also be useful.

Upvotes: 0

Views: 912

Answers (1)

Mr.Rebot
Mr.Rebot

Reputation: 6791

Upon checking the Maps SDK for iOS:Internal: Street View, there is no built-in function/implementation for the device orientation/ gyroscope sensor.

According to Ziem's answer you can try implement this by yourself(create function). He also give pointers to study the following:

Reference:

Using a site they have successfully create a function that will let you browse the Google streetview panoramas with your smartphone/tablet like you were inside it, just by moving your phone like a window to the world.

Upvotes: 1

Related Questions