mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Version 4.10.0: Updated target framework versions. Cleanup of TypeConverters, ImageLoader, MBTileSource.
This commit is contained in:
parent
147b56260d
commit
c8773cd551
7 changed files with 18 additions and 119 deletions
|
|
@ -1,11 +1,9 @@
|
|||
using MapControl;
|
||||
using MapControl.Caching;
|
||||
using ViewModel;
|
||||
using Windows.UI;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace UniversalApp
|
||||
{
|
||||
|
|
@ -15,40 +13,11 @@ namespace UniversalApp
|
|||
|
||||
public MainPage()
|
||||
{
|
||||
TileImageLoader.Cache = new ImageFileCache(TileImageLoader.DefaultCacheFolder);
|
||||
//TileImageLoader.Cache = new ImageFileCache(TileImageLoader.DefaultCacheFolder);
|
||||
//TileImageLoader.Cache = new FileDbCache(TileImageLoader.DefaultCacheFolder);
|
||||
|
||||
InitializeComponent();
|
||||
DataContext = ViewModel;
|
||||
|
||||
for (var x = -180d; x < 180d; x += 15d)
|
||||
{
|
||||
var location = new Location(0d, x);
|
||||
|
||||
var locations = new LocationCollection
|
||||
{
|
||||
new Location(0, x - 5),
|
||||
new Location(5, x),
|
||||
new Location(0, x + 5),
|
||||
new Location(-5, x)
|
||||
};
|
||||
|
||||
map.Children.Add(new MapPolygon
|
||||
{
|
||||
Fill = new SolidColorBrush(Colors.Red) { Opacity = 0.25 },
|
||||
Stroke = new SolidColorBrush(Colors.Red),
|
||||
StrokeThickness = 2,
|
||||
StrokeLineJoin = PenLineJoin.Round,
|
||||
Locations = locations,
|
||||
Location = location,
|
||||
});
|
||||
|
||||
map.Children.Add(new Pushpin
|
||||
{
|
||||
Content = x,
|
||||
Location = location,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void ImageOpacitySliderValueChanged(object sender, RangeBaseValueChangedEventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue