public void onClick ( MenuItemClickEvent event ) { FeatureTransaction ft = mapWidget . getMapModel ( ) . getFeatureEditor ( ) . getFeatureTransaction ( ) ; if ( ft != null && index != null ) { mapWidget . render ( ft , RenderGroup . VECTOR , RenderStatus . DELETE ) ; RemoveCoordinateOp op = new RemoveCoordinateOp ( index ) ; ft . execute ( op ) ; mapWidget . render ( ft , RenderGroup . VECTOR , RenderStatus . ALL ) ; } }
Remove an existing point from the geometry at a given index .