void checkBox_Click(object sender, RoutedEventArgs e) { if (!(sender is FrameworkElement)) { return; } var layer = ((sender as FrameworkElement).Tag as ILayer); layer.Enabled = !layer.Enabled; _mapControl.Clear(); _mapControl.OnViewChanged(); }
public void Clear() { _map.Clear(); }