Hi Ive been trying to get an elevation based on a point. here is my code, but the get elevation part dont respond to the completion handler
let surface = AGSSurface()
// Create an elevation source.
let elevationURL = URL(string: "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer")
let elevationSource = AGSArcGISTiledElevationSource(url: elevationURL!)
surface.elevationSources.append(elevationSource)
elevationSource.load { error in
if error == nil {
// Add the elevation source to the surface.
surface.elevation(for: hasCurrentPoint) { elevation, error in
print("vince!!!")
}
}
}