【问题标题】:Is there any possible way to temporarily hide the blue dot then make it re-disppear again in GMSMapView?有什么办法可以暂时隐藏蓝点,然后让它在 GMSMapView 中再次消失?
【发布时间】:2020-01-16 23:50:49
【问题描述】:

我发现当 isMyLocationEnabled 关闭然后重新打开时,地图上不再出现蓝点。

MyLocation 变量在完成此操作序列时给出nil 结果。

有什么方法可以暂时隐藏蓝点,然后让它再次消失?

【问题讨论】:

    标签: swift google-maps google-maps-markers google-maps-sdk-ios


    【解决方案1】:

    在设置isMyLocationEnabled = true之前尝试调用startUpdatingLocation()

    【讨论】:

    • 不仅如此,您实际上还必须重新启动 iOS GPS 跟踪周期。即首先调用stopUpdatingLocation(),然后调用startUpdatingLocation()。我想知道除了做这么复杂的事情之外是否还有其他方法。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多