Esempio n. 1
0
        public override bool MouseDoubleClick(Coordinate position)
        {
            // NB: Reverts the last single-click
            _context
            .End(UpdateGeometry(position, skipLast: true))
            .AddPolygon();

            return(true);
        }
Esempio n. 2
0
        public override bool MouseDoubleClick(Coordinate position)
        {
            // NB: Reverts the last single-click
            if (_baseGeometry.Coordinates.Length == 1)
            {
                _context.State = new StartLineStringState(_context);

                return(false);
            }
            else
            {
                _context
                .End(UpdateGeometry(position, skipLast: true))
                .AddLineString();

                return(true);
            }
        }