Is it possible to move/rotate GMSMarker
on GMSMapView
with animation?
The addition in 1.2 is that the GMSMarker
class has an animated
property - I presume you just set it to YES
, before adding the marker to the map by settings its map
property (I haven't tried it though).
https://developers.google.com/maps/documentation/ios/reference/interface_g_m_s_marker
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(-33.8683, 151.2086);
marker.title = @"Sydney";
marker.snippet = @"Australia";
marker.animated = YES;
marker.map = mapView_;
I presume this means that the marker will be animated when it is dropped onto the map - not that you can make a high-speed animated marker like this original question was asking.
No I'm afraid they are not as we have no access to the OpenGL context that Google Maps has access to. The best you can do is rotate a marker as a UIImage which requires a redraw or you can move a marker but it will jump unless you do it in very small increments!
I suggest reporting a bug to Google and they may be able to include it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With