mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Minor improvements
This commit is contained in:
parent
754e185c5d
commit
7e6b187fd7
9 changed files with 44 additions and 46 deletions
|
|
@ -50,9 +50,14 @@ namespace MapControl
|
|||
Add(new Location(latitude, longitude));
|
||||
}
|
||||
|
||||
public static LocationCollection Parse(string s)
|
||||
public static LocationCollection Parse(string locations)
|
||||
{
|
||||
var strings = s.Split(new char[] { ' ', ';' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (string.IsNullOrEmpty(locations))
|
||||
{
|
||||
return new LocationCollection();
|
||||
}
|
||||
|
||||
var strings = locations.Split(new char[] { ' ', ';' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
return new LocationCollection(strings.Select(l => Location.Parse(l)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue