I'm having in my app a GMSPanoramaView witch contains some street view images. I want to change those images to several locations with different 'heading' - directions.
I can't see a way to update the view with the new location, and the new heading at the same time.
The only way I can see is updating the location (by moveNearCoordinate
func)
and only after the camera's heading (by updateCamera:
func).
But this way cause a 'jump' in the seeing image - the view presenting the new location, and than jumping to the wanted heading. (the same will happens if i will update the camera first, and than the location).
I want the view to present the new location with specific direction Immediately. I will be happy for some solution. thanx.
You should make your heading changes in this method given to you by the
GMSPanoramaViewDelegate
In this method, you should only call
self.view = self.panoramaView;
after you've changed the heading by updating the camera. This is how I fixed a similar issue I was facing with the setting the heading of thepanoramaView
.