smb
smb

Reputation: 834

StreetView gyroscope functionality

In the official Google Maps application when a user rotates the device, StreetView is rotated. I made a research and didn't find how to enable gyroscope functionality in Google Maps v2 API for StreetView. I can implement this by myself, but maybe there IS such functionality and I just haven't find it?

Upvotes: 2

Views: 4871

Answers (2)

ki9
ki9

Reputation: 5575

It looks like Google recently updated their API to include accelerometer-based tracking in the street view point of view. Try this example on your phone.

From the documentation on Motion tracking on mobile devices:

On devices that support device orientation events, the API offers users the ability to change the Street View point of view based on the movement of the device. Users can look around by moving their devices. This is called motion tracking or device rotation tracking.

More information (like how to disable it) is in that link.

Upvotes: 1

Ziem
Ziem

Reputation: 6697

There isn't any built-in features in StreetView to enable this functionality. If you would like to do it by yourself you can check following links:

Upvotes: 1

Related Questions