John Stallings
John Stallings

Reputation: 581

Possible to Animate GMSMarkers in a GMSPanoramaView

I have added a GMSMarker to a GMSPanoramaView. While viewing the map I am attempting to update the position property. However it does not appear to be updating the map to reflect the new position. Does anybody know if this is possible in the GMSPanoramaView?

For reference we are constructing our markers like this

GMSMarker *marker = [GMSMarker markerWithPosition:coordinate];
marker.panoramaView = self.panoramaView; //panaroma view is initialized elsewhere

and then when we update the position we are simply doing

marker.position = newLocation

Upvotes: 1

Views: 310

Answers (1)

not_a_bot
not_a_bot

Reputation: 2362

Depending on how far away the new position is from the current panaroramaview's location, the updated marker might be too small and you won't be able to see it. Check out the documentation here.

If that's the case, you could try setting the marker's position to nil to remove it from the panorama view it's attached to, then update the position as mentioned here.

Upvotes: 1

Related Questions