gpt4 book ai didi

ios - 在 Esri map 中单击位置按钮时移动到当前位置

转载 作者:行者123 更新时间:2023-11-28 06:24:43 25 4
gpt4 key购买 nike

当用户单击当前位置按钮时,需要移动到 Esri map 中的当前位置。我试图找出有关 Esri map

的任何信息,但找不到任何相关信息

我做了以下代码,但它不起作用

//MARK:
//MARK: current location button clicked
func btnCurLoc_Clicked(_ sender:UIButton)
{
arcGISMapView.locationDisplay.startDataSource()
}

最佳答案

如果您希望 map 自动缩放到当前位置,您还需要设置 autopan mode在位置显示到选项之一 here最基本的居中是 AGSLocationDisplayAutoPanModeRecenter。

关于ios - 在 Esri map 中单击位置按钮时移动到当前位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42341016/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com