Version 2.10.0: Improved calculation of viewport positions.

This commit is contained in:
ClemensF 2016-06-04 08:42:38 +02:00
parent 2b66e89696
commit c8161f2dce
17 changed files with 64 additions and 31 deletions

View file

@ -2,6 +2,7 @@
using System.Globalization;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using MapControl;
namespace WpfApplication
@ -15,6 +16,17 @@ namespace WpfApplication
//BingMapsTileLayer.ApiKey = "...";
InitializeComponent();
for (double lon = -180; lon < 180; lon += 10)
{
var pushpin = new Pushpin { Content = lon };
MapPanel.SetLocation(pushpin, new Location(50, lon));
map.Children.Add(pushpin);
var path = new MapPath { Data = new EllipseGeometry(new Point(lon, 60), 10, 10), Stroke = Brushes.Blue, StrokeThickness = 2 };
MapPanel.SetLocation(path, new Location(50, lon));
map.Children.Add(path);
}
}
private void MapMouseLeftButtonDown(object sender, MouseButtonEventArgs e)

View file

@ -7,8 +7,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Clemens Fischer")]
[assembly: AssemblyCopyright("© 2016 Clemens Fischer")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyVersion("2.9.0")]
[assembly: AssemblyFileVersion("2.9.0")]
[assembly: AssemblyVersion("2.10.0")]
[assembly: AssemblyFileVersion("2.10.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]