mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Some comments
This commit is contained in:
parent
e642846e7d
commit
fd2f09a078
|
|
@ -44,6 +44,9 @@ namespace MapControl
|
|||
|
||||
public virtual Location Center => new Location((South + North) / 2d, (West + East) / 2d);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a BoundingBox instance from a string containing a comma-separated sequence of four floating point numbers.
|
||||
/// </summary>
|
||||
public static BoundingBox Parse(string boundingBox)
|
||||
{
|
||||
string[] values = null;
|
||||
|
|
@ -55,7 +58,7 @@ namespace MapControl
|
|||
|
||||
if (values?.Length != 4)
|
||||
{
|
||||
throw new FormatException("BoundingBox string must be a comma-separated list of four floating point numbers.");
|
||||
throw new FormatException("BoundingBox string must contain a comma-separated sequence of four floating point numbers.");
|
||||
}
|
||||
|
||||
return new BoundingBox(
|
||||
|
|
|
|||
|
|
@ -52,6 +52,9 @@ namespace MapControl
|
|||
return string.Format(CultureInfo.InvariantCulture, "{0:F5},{1:F5}", Latitude, Longitude);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a Location instance from a string containing a comma-separated pair of floating point numbers.
|
||||
/// </summary>
|
||||
public static Location Parse(string location)
|
||||
{
|
||||
string[] values = null;
|
||||
|
|
@ -63,7 +66,7 @@ namespace MapControl
|
|||
|
||||
if (values?.Length != 2)
|
||||
{
|
||||
throw new FormatException("Location string must be a comma-separated pair of floating point numbers.");
|
||||
throw new FormatException("Location string must contain a comma-separated pair of floating point numbers.");
|
||||
}
|
||||
|
||||
return new Location(
|
||||
|
|
|
|||
|
|
@ -52,6 +52,10 @@ namespace MapControl
|
|||
Add(new Location(latitude, longitude));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a LocationCollection instance from a string containing a sequence
|
||||
/// of Location strings that are separated by a spaces or semicolons.
|
||||
/// </summary>
|
||||
public static LocationCollection Parse(string locations)
|
||||
{
|
||||
if (string.IsNullOrEmpty(locations))
|
||||
|
|
|
|||
|
|
@ -84,6 +84,9 @@ namespace MapControl
|
|||
return uri != null ? ImageLoader.LoadImageAsync(uri) : Task.FromResult((ImageSource)null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a TileSource instance from an Uri template string.
|
||||
/// </summary>
|
||||
public static TileSource Parse(string uriTemplate)
|
||||
{
|
||||
return new TileSource { UriTemplate = uriTemplate };
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ namespace MapControl
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Comma-separated list of Layer names to be displayed. If not set, the first Layer is displayed.
|
||||
/// Comma-separated sequence of Layer names to be displayed. If not set, the first Layer is displayed.
|
||||
/// </summary>
|
||||
public string Layers
|
||||
{
|
||||
|
|
@ -76,7 +76,7 @@ namespace MapControl
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Comma-separated list of requested styles. Default is an empty string.
|
||||
/// Comma-separated sequence of requested styles. Default is an empty string.
|
||||
/// </summary>
|
||||
public string Styles
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue