SuperMap.WinRT.Actions.DrawPolygon.OnPointerMoved C# (CSharp) Method

OnPointerMoved() public method

${ui_action_DrawPolygon_event_OnPointerMoved_D}
public OnPointerMoved ( Windows e ) : void
e Windows
return void
        public override void OnPointerMoved(Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
        {
            if (_isActivated && !e.Pointer.IsInContact)
            {
                while (_points.Count > _pointsCount)
                {
                    _points.RemoveAt(_points.Count - 2);
                }
                Point2D item = Map.ScreenToMap(e.GetCurrentPoint(Map).Position);
                _points.Insert(_points.Count - 1, item);
            }
            base.OnPointerMoved(e);
        }