簡體   English   中英

在Google地圖上顯示和隱藏用戶默認位置標記

[英]Show and hide user default location marker on Google Maps

to "true" and "false" accordingly, but I'm experiencing being set to nil after first switch from true to false user default position blue dot marker never appears again. 我試圖隱藏然后顯示相應的用戶位置,將設置為“ true”和“ false”,但是在第一次從true切換到false時,我正在將設置為nil用戶默認位置藍點標記再也不會出現。 有什么方法可以啟用和禁用默認用戶位置顯示嗎?

MapView.myLocation必須始終具有CLLocation才能顯示。 如果在updateLocation時為零,則將其設置為所需的默認CLLocation。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM