GoogleMaps SDK for iOS上有标记动画吗? [英] Do marker animations exist on GoogleMaps SDK for iOS?

查看:67
本文介绍了GoogleMaps SDK for iOS上有标记动画吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过动画在 GMSMapView 上移动/旋转 GMSMarker


code>属性 - 我假设你只是将它设置为 YES ,然后通过设置它的 map property(尽管我还没有尝试过)。



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 = @悉尼;
marker.snippet = @澳大利亚;
marker.animated = YES;
marker.map = mapView_;

我认为这意味着标记在被放置到地图上时会生成动画 - 而不是您可以制作像这个原始问题所要求的高速动画标记。


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.

这篇关于GoogleMaps SDK for iOS上有标记动画吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆