Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Maps VisibleRegion Bounds

$
0
0

Hello,

Currently I am migrating from usual Xamarin Android to Xamarin forms.
I am using google map in my application and I need to know the bounds (visible region) of the map.

In Xamarin Android I was using the following statement:

    LatLngBounds latLngBounds = googleMap.Projection.VisibleRegion.LatLngBounds;
    facilitiesProvider.GetFacilitiesForBounds(
            latLngBounds.Southwest.Latitude,
                    latLngBounds.Southwest.Longitude,
                    latLngBounds.Northeast.Latitude,
                    latLngBounds.Northeast.Longitude));

How can I retrieve current bounds of visible area?

Thank you


Viewing all articles
Browse latest Browse all 58056

Trending Articles