我正在开发一个应用程序,其中有一张map。我正在使用ArcGISSDK来显示map。在这里,我试图在map加载时显示我的当前位置。我已将我的纬度和经度传递给ArcGIS函数的x和y参数。这是该函数的代码,letlat=gpsLocation.location?.coordinate.latitudeletlng=gpsLocation.location?.coordinate.longitudeprint(lat)print(lng)//zoomtocustomviewpointself.mapView.setViewpointCenter(AGSPoint(x:lat!,y:lng!