Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ios pov support #46

Open
temahot opened this issue Dec 14, 2022 · 0 comments
Open

Ios pov support #46

temahot opened this issue Dec 14, 2022 · 0 comments

Comments

@temahot
Copy link

temahot commented Dec 14, 2022

Hey
I'd like to add
following code to NSTstreetViewManager.h for supporting bearing and others props in IOS


RCT_CUSTOM_VIEW_PROPERTY(pov, CLLocationDegrees, NSTStreetView) {
  if (json == nil) return;
   NSInteger tilt = [[json valueForKey:@"tilt"] floatValue];
   NSInteger bearing = [[json valueForKey:@"bearing"] floatValue];
   NSInteger zoom = [[json valueForKey:@"zoom"] floatValue];
   view.camera = [GMSPanoramaCamera cameraWithHeading:bearing pitch:tilt zoom:zoom];
}

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

No branches or pull requests

1 participant