Esempio n. 1
0
 protected override void RefreshCore(GisEditorWpfMap currentMap, RefreshArgs refreshArgs)
 {
     base.RefreshCore(currentMap, refreshArgs);
     viewModel.SyncUIState();
     viewModel.SyncStylePreview();
     viewModel.Refresh();
 }
Esempio n. 2
0
        internal static void ActiveMap_MapClick(object sender, MapMouseClickInteractiveOverlayEventArgs e)
        {
            if (CurrentMarkerOverlay != null)
            {
                bool needTakeSnapshot = true;

                if (Keyboard.Modifiers != ModifierKeys.Shift)
                {
                    needTakeSnapshot = CommitTextAnnotations();
                    ViewModel.SyncStylePreview();
                }

                if (needTakeSnapshot)
                {
                    ViewModel.TakeSnapshot();
                }
            }

            if (ViewModel.SelectedMode != null && ViewModel.SelectedMode.Mode == TrackMode.Custom && shouldAddTextBoxWhenNextClick)
            {
                AddMarker(new PointShape(e.InteractionArguments.WorldX, e.InteractionArguments.WorldY));
            }
        }