GoogleMaps SDK for iOS上有标记动画吗? [英] Do marker animations exist on GoogleMaps SDK for iOS?
问题描述
是否可以通过动画在 GMSMapView
上移动/旋转 GMSMarker
?
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屋!