mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Version 2.10.0: Improved calculation of viewport positions.
This commit is contained in:
parent
2b66e89696
commit
c8161f2dce
17 changed files with 64 additions and 31 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue