mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Version 4.2.0
This commit is contained in:
parent
fd02476c6b
commit
a71b912405
|
|
@ -80,12 +80,12 @@ namespace WpfApplication
|
||||||
|
|
||||||
private void SeamarksChecked(object sender, RoutedEventArgs e)
|
private void SeamarksChecked(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
map.Children.Insert(map.Children.IndexOf(mapGraticule), (UIElement)Application.Current.Resources["Seamarks"]);
|
map.Children.Insert(map.Children.IndexOf(mapGraticule), ((MapViewModel)DataContext).MapLayers.SeamarksLayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SeamarksUnchecked(object sender, RoutedEventArgs e)
|
private void SeamarksUnchecked(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
map.Children.Remove((UIElement)Application.Current.Resources["Seamarks"]);
|
map.Children.Remove(((MapViewModel)DataContext).MapLayers.SeamarksLayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue