GoogleMaps SDK for iOS上是否存在标记动画?

Den*_*nis 10 google-maps ios google-maps-sdk-ios

是否可以移动/旋转GMSMarkerGMSMapView动画?

Sax*_*uce 6

1.2中的添加是GMSMarker该类具有animated属性 - 我假设您只是将其设置为YES,然后通过设置其map属性将标记添加到地图(尽管我没有尝试过).

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_;
Run Code Online (Sandbox Code Playgroud)

我认为这意味着当标记被拖放到地图上时,它将被动画化 - 而不是你可以像这个原始问题那样制作一个高速动画标记.

  • 从v1.5开始,`animated`字段变成了`appearAnimation`. (3认同)

Lee*_*ong 1

不,我担心它们不是,因为我们无法访问 Google 地图可以访问的 OpenGL 上下文。您能做的最好的事情就是将标记旋转为 UIImage,这需要重绘,或者您可以移动标记,但它会跳跃,除非您以非常小的增量进行操作!

我建议向Google报告错误,他们也许可以将其包含在内