public Task <byte[]> TakeSnapshotAsync(NxLatLngBounds bounds = default)
        {
            var tcs = new TaskCompletionSource <byte[]>();

            map.GetStyle(new GetStyleLoadedCallback(
                             new WeakReference <MapViewRenderer>(this),
                             tcs
                             ));

            return(tcs.Task);
        }
Exemple #2
0
 public static LatLngBounds ToLatLngBounds(this NxLatLngBounds pos)
 {
     return(LatLngBounds.From(pos.NorthEast.Lat, pos.NorthEast.Long, pos.SouthWest.Lat, pos.SouthWest.Long));
 }