public override bool MouseDoubleClick(Coordinate position) { // NB: Reverts the last single-click _context .End(UpdateGeometry(position, skipLast: true)) .AddPolygon(); return(true); }
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); } }