public Task <byte[]> TakeSnapshotAsync(NxLatLngBounds bounds = default) { var tcs = new TaskCompletionSource <byte[]>(); map.GetStyle(new GetStyleLoadedCallback( new WeakReference <MapViewRenderer>(this), tcs )); return(tcs.Task); }
public static LatLngBounds ToLatLngBounds(this NxLatLngBounds pos) { return(LatLngBounds.From(pos.NorthEast.Lat, pos.NorthEast.Long, pos.SouthWest.Lat, pos.SouthWest.Long)); }