mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MainWindow.xaml.cs
This commit is contained in:
parent
948b0b2006
commit
53723844a0
|
|
@ -63,7 +63,10 @@ namespace ProjectionDemo
|
|||
|
||||
private void Map_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
viewModel.PushpinLocation = viewModel.CurrentProjection.ViewportPointToLocation(e.GetPosition((IInputElement)sender));
|
||||
var map = (MapBase)sender;
|
||||
var pos = e.GetPosition(map);
|
||||
|
||||
viewModel.PushpinLocation = map.MapProjection.ViewportPointToLocation(pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue