private async Task <MapPoint> AddZOffsetAsync(MapPoint mapPoint) { return(await QueuedTask.Run(async() => mapPoint.HasZ ?MapPointBuilder.CreateMapPoint(mapPoint.X, mapPoint.Y, mapPoint.Z + ((VectorLayer != null) ? await VectorLayer.GetOffsetZAsync() : 0), mapPoint.SpatialReference) : MapPointBuilder.CreateMapPoint(mapPoint.X, mapPoint.Y, mapPoint.SpatialReference))); }