ios - 可以在 GMSPanoramaView 中为 GMSMarkers 设置动画

标签 ios google-maps google-maps-sdk-ios

我已将 GMSMarker 添加到 GMSPanoramaView。查看 map 时,我正在尝试更新位置属性。但是,它似乎没有更新 map 以反射(reflect)新位置。有人知道这在 GMSPanoramaView 中是否可行吗?

作为引用,我们正在构建我们的标记

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

然后当我们更新我们正在做的位置时

marker.position = newLocation

最佳答案

根据新位置与当前全景 View 位置的距离,更新后的标记可能太小,您将无法看到它。查看文档 here .

如果是这种情况,您可以尝试将标记的位置设置为 nil 以将其从它所附加的全景 View 中删除,然后按照所述更新位置 here .

关于ios - 可以在 GMSPanoramaView 中为 GMSMarkers 设置动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27051093/

相关文章:

android - 谷歌地图未在 Android 中显示

android - 如何在 Android map 上显示可点击的小项目

ios - 透明折线

ios - 如何从我的应用中打开缩短的 Google map URL?

ios - 使用 Swift 在 didReceiveRemoteNotification 中呈现特定的 View Controller

ios - Swift 协议(protocol)符合 : Candidate has non-matching type

javascript - 谷歌地理编码/机场信息

ios - Google Maps SDK iOS 以编程方式更改楼层

ios - Google Maps iOS SDK - 在 subview 中添加 GMSPanoramaView

ios - 是否可以在 iOS 中的一定时间间隔后显示 iAd