MapSpan.FromLocations(IEnumerable<Location>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a MapSpan that encompasses all of the specified locations.
public:
static Microsoft::Maui::Maps::MapSpan ^ FromLocations(System::Collections::Generic::IEnumerable<Microsoft::Maui::Devices::Sensors::Location ^> ^ locations);
public static Microsoft.Maui.Maps.MapSpan FromLocations(System.Collections.Generic.IEnumerable<Microsoft.Maui.Devices.Sensors.Location> locations);
static member FromLocations : seq<Microsoft.Maui.Devices.Sensors.Location> -> Microsoft.Maui.Maps.MapSpan
Public Shared Function FromLocations (locations As IEnumerable(Of Location)) As MapSpan
Parameters
- locations
- IEnumerable<Location>
The locations to include in the span.
Returns
A new MapSpan that fits all locations, with 10% padding.
Exceptions
Thrown when locations is null.
Thrown when locations is empty.