mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 23:15:14 +00:00
Updated MapPolypoint
This commit is contained in:
parent
e4048db274
commit
2b3a8606c0
5 changed files with 16 additions and 25 deletions
|
|
@ -1,6 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
#if WPF
|
||||
#if WPF
|
||||
using System.Windows;
|
||||
#elif UWP
|
||||
using Windows.UI.Xaml;
|
||||
|
|
@ -123,21 +121,5 @@ namespace MapControl
|
|||
|
||||
return point;
|
||||
}
|
||||
|
||||
protected IEnumerable<Point> LocationsToMap(IEnumerable<Location> locations, double longitudeOffset)
|
||||
{
|
||||
return locations
|
||||
.Select(location => LocationToMap(location, longitudeOffset))
|
||||
.Where(point => point.HasValue)
|
||||
.Select(point => point.Value);
|
||||
}
|
||||
|
||||
protected IEnumerable<Point> LocationsToView(IEnumerable<Location> locations, double longitudeOffset)
|
||||
{
|
||||
return locations
|
||||
.Select(location => LocationToView(location, longitudeOffset))
|
||||
.Where(point => point.HasValue)
|
||||
.Select(point => point.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@ namespace MapControl
|
|||
{ "J", Math.Round(imagePos.Y).ToString("F0") }
|
||||
};
|
||||
|
||||
// GetRequestUri may modify queryParameters["LAYERS"]
|
||||
// GetRequestUri may modify queryParameters["LAYERS"].
|
||||
//
|
||||
uri = GetRequestUri(queryParameters) + "&QUERY_LAYERS=" + queryParameters["LAYERS"];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue